diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java index 113b40f76f20..7da74a5003dc 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequest.java @@ -112,12 +112,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -134,12 +135,13 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -159,15 +161,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required.
-   * The job to add. The user can optionally specify a name for the
+   * Required. The job to add. The user can optionally specify a name for the
    * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    * existing job. If a name is not specified then the system will
    * generate a random unique name that will be returned
    * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public boolean hasJob() { return job_ != null; @@ -176,15 +177,14 @@ public boolean hasJob() { * * *
-   * Required.
-   * The job to add. The user can optionally specify a name for the
+   * Required. The job to add. The user can optionally specify a name for the
    * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    * existing job. If a name is not specified then the system will
    * generate a random unique name that will be returned
    * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.scheduler.v1.Job getJob() { return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; @@ -193,15 +193,14 @@ public com.google.cloud.scheduler.v1.Job getJob() { * * *
-   * Required.
-   * The job to add. The user can optionally specify a name for the
+   * Required. The job to add. The user can optionally specify a name for the
    * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    * existing job. If a name is not specified then the system will
    * generate a random unique name that will be returned
    * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { return getJob(); @@ -556,12 +555,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -578,12 +578,13 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -600,12 +601,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -620,12 +622,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -637,12 +640,13 @@ public Builder clearParent() { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -665,15 +669,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; @@ -682,15 +686,15 @@ public boolean hasJob() { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.scheduler.v1.Job getJob() { if (jobBuilder_ == null) { @@ -703,15 +707,15 @@ public com.google.cloud.scheduler.v1.Job getJob() { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob(com.google.cloud.scheduler.v1.Job value) { if (jobBuilder_ == null) { @@ -730,15 +734,15 @@ public Builder setJob(com.google.cloud.scheduler.v1.Job value) { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { @@ -754,15 +758,15 @@ public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) { if (jobBuilder_ == null) { @@ -782,15 +786,15 @@ public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearJob() { if (jobBuilder_ == null) { @@ -807,15 +811,15 @@ public Builder clearJob() { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() { @@ -826,15 +830,15 @@ public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { @@ -847,15 +851,15 @@ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { * * *
-     * Required.
-     * The job to add. The user can optionally specify a name for the
+     * Required. The job to add. The user can optionally specify a name for the
      * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
      * existing job. If a name is not specified then the system will
      * generate a random unique name that will be returned
      * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
      * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.scheduler.v1.Job, diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java index 5097b8906597..a2e18732958e 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/CreateJobRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface CreateJobRequestOrBuilder * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); @@ -37,45 +39,42 @@ public interface CreateJobRequestOrBuilder * * *
-   * Required.
-   * The job to add. The user can optionally specify a name for the
+   * Required. The job to add. The user can optionally specify a name for the
    * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    * existing job. If a name is not specified then the system will
    * generate a random unique name that will be returned
    * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ boolean hasJob(); /** * * *
-   * Required.
-   * The job to add. The user can optionally specify a name for the
+   * Required. The job to add. The user can optionally specify a name for the
    * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    * existing job. If a name is not specified then the system will
    * generate a random unique name that will be returned
    * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.scheduler.v1.Job getJob(); /** * * *
-   * Required.
-   * The job to add. The user can optionally specify a name for the
+   * Required. The job to add. The user can optionally specify a name for the
    * job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
    * existing job. If a name is not specified then the system will
    * generate a random unique name that will be returned
    * ([name][google.cloud.scheduler.v1.Job.name]) in the response.
    * 
* - * .google.cloud.scheduler.v1.Job job = 2; + * .google.cloud.scheduler.v1.Job job = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java index 81cce718c161..71cda016dbee 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequest.java @@ -98,12 +98,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -120,12 +121,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -461,12 +463,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -483,12 +486,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -505,12 +509,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -525,12 +530,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -542,12 +548,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java index d9f9a92494a7..0693c2c6574b 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/DeleteJobRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface DeleteJobRequestOrBuilder * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java index d8b619e6e788..5450d6faa600 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequest.java @@ -97,12 +97,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -119,12 +120,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -459,12 +461,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -481,12 +484,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -503,12 +507,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -523,12 +528,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -540,12 +546,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java index 96ef33a75a0e..73ce9ccd5f63 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/GetJobRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface GetJobRequestOrBuilder * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java index 834cd73f160b..13975faee9f7 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTarget.java @@ -218,8 +218,7 @@ public AuthorizationHeaderCase getAuthorizationHeaderCase() { * * *
-   * Required.
-   * The full URI path that the request will be sent to. This string
+   * Required. The full URI path that the request will be sent to. This string
    * must begin with either "http://" or "https://". Some examples of
    * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
    * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -244,8 +243,7 @@ public java.lang.String getUri() {
    *
    *
    * 
-   * Required.
-   * The full URI path that the request will be sent to. This string
+   * Required. The full URI path that the request will be sent to. This string
    * must begin with either "http://" or "https://". Some examples of
    * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
    * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -468,8 +466,8 @@ public com.google.protobuf.ByteString getBody() {
    * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
    * will be generated and attached as an `Authorization` header in the HTTP
    * request.
-   * This type of authorization should be used when sending requests to a GCP
-   * endpoint.
+   * This type of authorization should generally only be used when calling
+   * Google APIs hosted on *.googleapis.com.
    * 
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -485,8 +483,8 @@ public boolean hasOauthToken() { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. *
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -505,8 +503,8 @@ public com.google.cloud.scheduler.v1.OAuthToken getOauthToken() { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. * * * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -527,8 +525,9 @@ public com.google.cloud.scheduler.v1.OAuthTokenOrBuilder getOauthTokenOrBuilder( * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -544,8 +543,9 @@ public boolean hasOidcToken() { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -564,8 +564,9 @@ public com.google.cloud.scheduler.v1.OidcToken getOidcToken() { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1066,8 +1067,7 @@ public Builder clearAuthorizationHeader() { * * *
-     * Required.
-     * The full URI path that the request will be sent to. This string
+     * Required. The full URI path that the request will be sent to. This string
      * must begin with either "http://" or "https://". Some examples of
      * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
      * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -1092,8 +1092,7 @@ public java.lang.String getUri() {
      *
      *
      * 
-     * Required.
-     * The full URI path that the request will be sent to. This string
+     * Required. The full URI path that the request will be sent to. This string
      * must begin with either "http://" or "https://". Some examples of
      * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
      * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -1118,8 +1117,7 @@ public com.google.protobuf.ByteString getUriBytes() {
      *
      *
      * 
-     * Required.
-     * The full URI path that the request will be sent to. This string
+     * Required. The full URI path that the request will be sent to. This string
      * must begin with either "http://" or "https://". Some examples of
      * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
      * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -1142,8 +1140,7 @@ public Builder setUri(java.lang.String value) {
      *
      *
      * 
-     * Required.
-     * The full URI path that the request will be sent to. This string
+     * Required. The full URI path that the request will be sent to. This string
      * must begin with either "http://" or "https://". Some examples of
      * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
      * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -1163,8 +1160,7 @@ public Builder clearUri() {
      *
      *
      * 
-     * Required.
-     * The full URI path that the request will be sent to. This string
+     * Required. The full URI path that the request will be sent to. This string
      * must begin with either "http://" or "https://". Some examples of
      * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
      * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -1570,8 +1566,8 @@ public Builder clearBody() {
      * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
      * will be generated and attached as an `Authorization` header in the HTTP
      * request.
-     * This type of authorization should be used when sending requests to a GCP
-     * endpoint.
+     * This type of authorization should generally only be used when calling
+     * Google APIs hosted on *.googleapis.com.
      * 
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1587,8 +1583,8 @@ public boolean hasOauthToken() { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. *
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1614,8 +1610,8 @@ public com.google.cloud.scheduler.v1.OAuthToken getOauthToken() { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. *
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1641,8 +1637,8 @@ public Builder setOauthToken(com.google.cloud.scheduler.v1.OAuthToken value) { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. *
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1665,8 +1661,8 @@ public Builder setOauthToken(com.google.cloud.scheduler.v1.OAuthToken.Builder bu * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. *
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1702,8 +1698,8 @@ public Builder mergeOauthToken(com.google.cloud.scheduler.v1.OAuthToken value) { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. * * * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1732,8 +1728,8 @@ public Builder clearOauthToken() { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. * * * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1749,8 +1745,8 @@ public com.google.cloud.scheduler.v1.OAuthToken.Builder getOauthTokenBuilder() { * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. * * * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1773,8 +1769,8 @@ public com.google.cloud.scheduler.v1.OAuthTokenOrBuilder getOauthTokenOrBuilder( * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. * * * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -1817,8 +1813,9 @@ public com.google.cloud.scheduler.v1.OAuthTokenOrBuilder getOauthTokenOrBuilder( * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1834,8 +1831,9 @@ public boolean hasOidcToken() { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1861,8 +1859,9 @@ public com.google.cloud.scheduler.v1.OidcToken getOidcToken() { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1888,8 +1887,9 @@ public Builder setOidcToken(com.google.cloud.scheduler.v1.OidcToken value) { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1912,8 +1912,9 @@ public Builder setOidcToken(com.google.cloud.scheduler.v1.OidcToken.Builder buil * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1949,8 +1950,9 @@ public Builder mergeOidcToken(com.google.cloud.scheduler.v1.OidcToken value) { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1979,8 +1981,9 @@ public Builder clearOidcToken() { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -1996,8 +1999,9 @@ public com.google.cloud.scheduler.v1.OidcToken.Builder getOidcTokenBuilder() { * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -2020,8 +2024,9 @@ public com.google.cloud.scheduler.v1.OidcTokenOrBuilder getOidcTokenOrBuilder() * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java index 8a538f109e91..d2136c83a565 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/HttpTargetOrBuilder.java @@ -12,8 +12,7 @@ public interface HttpTargetOrBuilder * * *
-   * Required.
-   * The full URI path that the request will be sent to. This string
+   * Required. The full URI path that the request will be sent to. This string
    * must begin with either "http://" or "https://". Some examples of
    * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
    * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -28,8 +27,7 @@ public interface HttpTargetOrBuilder
    *
    *
    * 
-   * Required.
-   * The full URI path that the request will be sent to. This string
+   * Required. The full URI path that the request will be sent to. This string
    * must begin with either "http://" or "https://". Some examples of
    * valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
    * `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
@@ -202,8 +200,8 @@ public interface HttpTargetOrBuilder
    * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
    * will be generated and attached as an `Authorization` header in the HTTP
    * request.
-   * This type of authorization should be used when sending requests to a GCP
-   * endpoint.
+   * This type of authorization should generally only be used when calling
+   * Google APIs hosted on *.googleapis.com.
    * 
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -217,8 +215,8 @@ public interface HttpTargetOrBuilder * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. *
* * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -232,8 +230,8 @@ public interface HttpTargetOrBuilder * [OAuth token](https://developers.google.com/identity/protocols/OAuth2) * will be generated and attached as an `Authorization` header in the HTTP * request. - * This type of authorization should be used when sending requests to a GCP - * endpoint. + * This type of authorization should generally only be used when calling + * Google APIs hosted on *.googleapis.com. * * * .google.cloud.scheduler.v1.OAuthToken oauth_token = 5; @@ -248,8 +246,9 @@ public interface HttpTargetOrBuilder * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -263,8 +262,9 @@ public interface HttpTargetOrBuilder * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; @@ -278,8 +278,9 @@ public interface HttpTargetOrBuilder * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) * token will be generated and attached as an `Authorization` header in the * HTTP request. - * This type of authorization should be used when sending requests to third - * party endpoints or Cloud Run. + * This type of authorization can be used for many scenarios, including + * calling Cloud Run, or endpoints where you intend to validate the token + * yourself. * * * .google.cloud.scheduler.v1.OidcToken oidc_token = 6; diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java index 39a496738628..462452046b4e 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/JobProto.java @@ -30,12 +30,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n#google/cloud/scheduler/v1/job.proto\022\031g" - + "oogle.cloud.scheduler.v1\032\034google/api/ann" - + "otations.proto\032\031google/api/resource.prot" - + "o\032&google/cloud/scheduler/v1/target.prot" - + "o\032\036google/protobuf/duration.proto\032\037googl" - + "e/protobuf/timestamp.proto\032\027google/rpc/s" - + "tatus.proto\"\357\005\n\003Job\022\014\n\004name\030\001 \001(\t\022\023\n\013des" + + "oogle.cloud.scheduler.v1\032\031google/api/res" + + "ource.proto\032&google/cloud/scheduler/v1/t" + + "arget.proto\032\036google/protobuf/duration.pr" + + "oto\032\037google/protobuf/timestamp.proto\032\027go" + + "ogle/rpc/status.proto\032\034google/api/annota" + + "tions.proto\"\313\006\n\003Job\022\014\n\004name\030\001 \001(\t\022\023\n\013des" + "cription\030\002 \001(\t\022@\n\rpubsub_target\030\004 \001(\0132\'." + "google.cloud.scheduler.v1.PubsubTargetH\000" + "\022P\n\026app_engine_http_target\030\005 \001(\0132..googl" @@ -53,16 +53,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".RetryConfig\0223\n\020attempt_deadline\030\026 \001(\0132\031" + ".google.protobuf.Duration\"X\n\005State\022\025\n\021ST" + "ATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\n\n\006PAUSED" - + "\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_FAILED\020\004B\010\n\006t" - + "arget\"\342\001\n\013RetryConfig\022\023\n\013retry_count\030\001 \001" - + "(\005\0225\n\022max_retry_duration\030\002 \001(\0132\031.google." - + "protobuf.Duration\0227\n\024min_backoff_duratio" - + "n\030\003 \001(\0132\031.google.protobuf.Duration\0227\n\024ma" - + "x_backoff_duration\030\004 \001(\0132\031.google.protob" - + "uf.Duration\022\025\n\rmax_doublings\030\005 \001(\005Bo\n\035co" - + "m.google.cloud.scheduler.v1B\010JobProtoP\001Z" - + "Bgoogle.golang.org/genproto/googleapis/c" - + "loud/scheduler/v1;schedulerb\006proto3" + + "\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_FAILED\020\004:Z\352AW" + + "\n!cloudscheduler.googleapis.com/Job\0222pro" + + "jects/{project}/locations/{location}/job" + + "s/{job}B\010\n\006target\"\342\001\n\013RetryConfig\022\023\n\013ret" + + "ry_count\030\001 \001(\005\0225\n\022max_retry_duration\030\002 \001" + + "(\0132\031.google.protobuf.Duration\0227\n\024min_bac" + + "koff_duration\030\003 \001(\0132\031.google.protobuf.Du" + + "ration\0227\n\024max_backoff_duration\030\004 \001(\0132\031.g" + + "oogle.protobuf.Duration\022\025\n\rmax_doublings" + + "\030\005 \001(\005Bo\n\035com.google.cloud.scheduler.v1B" + + "\010JobProtoP\001ZBgoogle.golang.org/genproto/" + + "googleapis/cloud/scheduler/v1;schedulerb" + + "\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -75,12 +78,12 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.scheduler.v1.TargetProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), }, assigner); internal_static_google_cloud_scheduler_v1_Job_descriptor = @@ -117,12 +120,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( "MaxBackoffDuration", "MaxDoublings", }); - com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.scheduler.v1.TargetProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java index a5284dcb9cd9..cae0f6cbb9fe 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequest.java @@ -110,12 +110,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -132,12 +133,13 @@ public java.lang.String getParent() { * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -577,12 +579,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -599,12 +602,13 @@ public java.lang.String getParent() { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -621,12 +625,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -641,12 +646,13 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearParent() { @@ -658,12 +664,13 @@ public Builder clearParent() { * * *
-     * Required.
-     * The location name. For example:
+     * Required. The location name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID`.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java index 9f69959185c5..9140acb778bb 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ListJobsRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface ListJobsRequestOrBuilder * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getParent(); /** * * *
-   * Required.
-   * The location name. For example:
+   * Required. The location name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID`.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getParentBytes(); diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OAuthToken.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OAuthToken.java index 42e68baccf54..510050cc3907 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OAuthToken.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OAuthToken.java @@ -9,8 +9,8 @@ *
  * Contains information needed for generating an
  * [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
- * This type of authorization should be used when sending requests to a GCP
- * endpoint.
+ * This type of authorization should generally only be used when calling Google
+ * APIs hosted on *.googleapis.com.
  * 
* * Protobuf type {@code google.cloud.scheduler.v1.OAuthToken} @@ -371,8 +371,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Contains information needed for generating an
    * [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
-   * This type of authorization should be used when sending requests to a GCP
-   * endpoint.
+   * This type of authorization should generally only be used when calling Google
+   * APIs hosted on *.googleapis.com.
    * 
* * Protobuf type {@code google.cloud.scheduler.v1.OAuthToken} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OidcToken.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OidcToken.java index 78982f97cd94..2438c0c009dc 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OidcToken.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/OidcToken.java @@ -9,9 +9,10 @@ *
  * Contains information needed for generating an
  * [OpenID Connect
- * token](https://developers.google.com/identity/protocols/OpenIDConnect). This
- * type of authorization should be used when sending requests to third party
- * endpoints or Cloud Run.
+ * token](https://developers.google.com/identity/protocols/OpenIDConnect).
+ * This type of authorization can be used for many scenarios, including
+ * calling Cloud Run, or endpoints where you intend to validate the token
+ * yourself.
  * 
* * Protobuf type {@code google.cloud.scheduler.v1.OidcToken} @@ -370,9 +371,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * Contains information needed for generating an
    * [OpenID Connect
-   * token](https://developers.google.com/identity/protocols/OpenIDConnect). This
-   * type of authorization should be used when sending requests to third party
-   * endpoints or Cloud Run.
+   * token](https://developers.google.com/identity/protocols/OpenIDConnect).
+   * This type of authorization can be used for many scenarios, including
+   * calling Cloud Run, or endpoints where you intend to validate the token
+   * yourself.
    * 
* * Protobuf type {@code google.cloud.scheduler.v1.OidcToken} diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java index e3d3bd8c7fd1..fb7cb6831ab2 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequest.java @@ -97,12 +97,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -119,12 +120,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -459,12 +461,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -481,12 +484,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -503,12 +507,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -523,12 +528,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -540,12 +546,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java index cdfacc6d950b..0440afd735c5 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PauseJobRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface PauseJobRequestOrBuilder * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java index d82bae1f4d48..3ba60215cfb9 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTarget.java @@ -131,8 +131,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * *
-   * Required.
-   * The name of the Cloud Pub/Sub topic to which messages will
+   * 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),
@@ -140,7 +139,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * The topic must be in the same project as the Cloud Scheduler job.
    * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public java.lang.String getTopicName() { java.lang.Object ref = topicName_; @@ -157,8 +156,7 @@ public java.lang.String getTopicName() { * * *
-   * Required.
-   * The name of the Cloud Pub/Sub topic to which messages will
+   * 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),
@@ -166,7 +164,7 @@ public java.lang.String getTopicName() {
    * The topic must be in the same project as the Cloud Scheduler job.
    * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getTopicNameBytes() { java.lang.Object ref = topicName_; @@ -682,8 +680,7 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The name of the Cloud Pub/Sub topic to which messages will
+     * 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),
@@ -691,7 +688,7 @@ public Builder mergeFrom(
      * The topic must be in the same project as the Cloud Scheduler job.
      * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public java.lang.String getTopicName() { java.lang.Object ref = topicName_; @@ -708,8 +705,7 @@ public java.lang.String getTopicName() { * * *
-     * Required.
-     * The name of the Cloud Pub/Sub topic to which messages will
+     * 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),
@@ -717,7 +713,7 @@ public java.lang.String getTopicName() {
      * The topic must be in the same project as the Cloud Scheduler job.
      * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public com.google.protobuf.ByteString getTopicNameBytes() { java.lang.Object ref = topicName_; @@ -734,8 +730,7 @@ public com.google.protobuf.ByteString getTopicNameBytes() { * * *
-     * Required.
-     * The name of the Cloud Pub/Sub topic to which messages will
+     * 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),
@@ -743,7 +738,7 @@ public com.google.protobuf.ByteString getTopicNameBytes() {
      * The topic must be in the same project as the Cloud Scheduler job.
      * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public Builder setTopicName(java.lang.String value) { if (value == null) { @@ -758,8 +753,7 @@ public Builder setTopicName(java.lang.String value) { * * *
-     * Required.
-     * The name of the Cloud Pub/Sub topic to which messages will
+     * 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),
@@ -767,7 +761,7 @@ public Builder setTopicName(java.lang.String value) {
      * The topic must be in the same project as the Cloud Scheduler job.
      * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public Builder clearTopicName() { @@ -779,8 +773,7 @@ public Builder clearTopicName() { * * *
-     * Required.
-     * The name of the Cloud Pub/Sub topic to which messages will
+     * 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),
@@ -788,7 +781,7 @@ public Builder clearTopicName() {
      * The topic must be in the same project as the Cloud Scheduler job.
      * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ public Builder setTopicNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java index 30eb2dc8660a..c07f64066bfb 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/PubsubTargetOrBuilder.java @@ -12,8 +12,7 @@ public interface PubsubTargetOrBuilder * * *
-   * Required.
-   * The name of the Cloud Pub/Sub topic to which messages will
+   * 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),
@@ -21,15 +20,14 @@ public interface PubsubTargetOrBuilder
    * The topic must be in the same project as the Cloud Scheduler job.
    * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ java.lang.String getTopicName(); /** * * *
-   * Required.
-   * The name of the Cloud Pub/Sub topic to which messages will
+   * 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),
@@ -37,7 +35,7 @@ public interface PubsubTargetOrBuilder
    * The topic must be in the same project as the Cloud Scheduler job.
    * 
* - * string topic_name = 1; + * string topic_name = 1 [(.google.api.resource_reference) = { ... } */ com.google.protobuf.ByteString getTopicNameBytes(); diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java index 804a5f9b4197..1ef9dfff5866 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequest.java @@ -97,12 +97,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -119,12 +120,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -459,12 +461,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -481,12 +484,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -503,12 +507,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -523,12 +528,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -540,12 +546,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java index e7f4ff82f89a..6f8638c83354 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ResumeJobRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface ResumeJobRequestOrBuilder * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java index c7288d56b10c..cd0c63647be0 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequest.java @@ -98,12 +98,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -120,12 +121,13 @@ public java.lang.String getName() { * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -461,12 +463,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -483,12 +486,13 @@ public java.lang.String getName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -505,12 +509,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setName(java.lang.String value) { if (value == null) { @@ -525,12 +530,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder clearName() { @@ -542,12 +548,13 @@ public Builder clearName() { * * *
-     * Required.
-     * The job name. For example:
+     * Required. The job name. For example:
      * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
      * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java index 76ce2d4c3487..3da26c2c4b3d 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/RunJobRequestOrBuilder.java @@ -12,24 +12,26 @@ public interface RunJobRequestOrBuilder * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ java.lang.String getName(); /** * * *
-   * Required.
-   * The job name. For example:
+   * Required. The job name. For example:
    * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`.
    * 
* - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java index 1435b25db3d3..b125a3c85830 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/SchedulerProto.java @@ -59,56 +59,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n.google/cloud/scheduler/v1/cloudschedul" + "er.proto\022\031google.cloud.scheduler.v1\032\034goo" - + "gle/api/annotations.proto\032\031google/api/re" - + "source.proto\032#google/cloud/scheduler/v1/" - + "job.proto\032\033google/protobuf/empty.proto\032 " - + "google/protobuf/field_mask.proto\"H\n\017List" - + "JobsRequest\022\016\n\006parent\030\001 \001(\t\022\021\n\tpage_size" - + "\030\005 \001(\005\022\022\n\npage_token\030\006 \001(\t\"Y\n\020ListJobsRe" - + "sponse\022,\n\004jobs\030\001 \003(\0132\036.google.cloud.sche" - + "duler.v1.Job\022\027\n\017next_page_token\030\002 \001(\t\"\035\n" - + "\rGetJobRequest\022\014\n\004name\030\001 \001(\t\"O\n\020CreateJo" - + "bRequest\022\016\n\006parent\030\001 \001(\t\022+\n\003job\030\002 \001(\0132\036." - + "google.cloud.scheduler.v1.Job\"p\n\020UpdateJ" - + "obRequest\022+\n\003job\030\001 \001(\0132\036.google.cloud.sc" - + "heduler.v1.Job\022/\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMask\" \n\020DeleteJobRequ" - + "est\022\014\n\004name\030\001 \001(\t\"\037\n\017PauseJobRequest\022\014\n\004" - + "name\030\001 \001(\t\" \n\020ResumeJobRequest\022\014\n\004name\030\001" - + " \001(\t\"\035\n\rRunJobRequest\022\014\n\004name\030\001 \001(\t2\225\t\n\016" - + "CloudScheduler\022\225\001\n\010ListJobs\022*.google.clo" - + "ud.scheduler.v1.ListJobsRequest\032+.google" - + ".cloud.scheduler.v1.ListJobsResponse\"0\202\323" - + "\344\223\002*\022(/v1/{parent=projects/*/locations/*" - + "}/jobs\022\204\001\n\006GetJob\022(.google.cloud.schedul" - + "er.v1.GetJobRequest\032\036.google.cloud.sched" - + "uler.v1.Job\"0\202\323\344\223\002*\022(/v1/{name=projects/" - + "*/locations/*/jobs/*}\022\217\001\n\tCreateJob\022+.go" - + "ogle.cloud.scheduler.v1.CreateJobRequest" - + "\032\036.google.cloud.scheduler.v1.Job\"5\202\323\344\223\002/" - + "\"(/v1/{parent=projects/*/locations/*}/jo" - + "bs:\003job\022\223\001\n\tUpdateJob\022+.google.cloud.sch" - + "eduler.v1.UpdateJobRequest\032\036.google.clou" - + "d.scheduler.v1.Job\"9\202\323\344\223\00232,/v1/{job.nam" - + "e=projects/*/locations/*/jobs/*}:\003job\022\202\001" - + "\n\tDeleteJob\022+.google.cloud.scheduler.v1." - + "DeleteJobRequest\032\026.google.protobuf.Empty" - + "\"0\202\323\344\223\002**(/v1/{name=projects/*/locations" - + "/*/jobs/*}\022\221\001\n\010PauseJob\022*.google.cloud.s" - + "cheduler.v1.PauseJobRequest\032\036.google.clo" - + "ud.scheduler.v1.Job\"9\202\323\344\223\0023\"./v1/{name=p" - + "rojects/*/locations/*/jobs/*}:pause:\001*\022\224" - + "\001\n\tResumeJob\022+.google.cloud.scheduler.v1" - + ".ResumeJobRequest\032\036.google.cloud.schedul" - + "er.v1.Job\":\202\323\344\223\0024\"//v1/{name=projects/*/" - + "locations/*/jobs/*}:resume:\001*\022\213\001\n\006RunJob" - + "\022(.google.cloud.scheduler.v1.RunJobReque" + + "gle/api/annotations.proto\032\027google/api/cl" + + "ient.proto\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032#google/c" + + "loud/scheduler/v1/job.proto\032\033google/prot" + + "obuf/empty.proto\032 google/protobuf/field_" + + "mask.proto\"s\n\017ListJobsRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\022!locations.googleapis.com/" + + "Location\022\021\n\tpage_size\030\005 \001(\005\022\022\n\npage_toke" + + "n\030\006 \001(\t\"Y\n\020ListJobsResponse\022,\n\004jobs\030\001 \003(" + + "\0132\036.google.cloud.scheduler.v1.Job\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"H\n\rGetJobRequest\0227\n\004n" + + "ame\030\001 \001(\tB)\340A\002\372A#\n!cloudscheduler.google" + + "apis.com/Job\"\177\n\020CreateJobRequest\0229\n\006pare" + + "nt\030\001 \001(\tB)\340A\002\372A#\022!locations.googleapis.c" + + "om/Location\0220\n\003job\030\002 \001(\0132\036.google.cloud." + + "scheduler.v1.JobB\003\340A\002\"z\n\020UpdateJobReques" + + "t\0220\n\003job\030\001 \001(\0132\036.google.cloud.scheduler." + + "v1.JobB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\002\"K\n\020DeleteJobRe" + + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!cloudschedu" + + "ler.googleapis.com/Job\"J\n\017PauseJobReques" + + "t\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!cloudscheduler." + + "googleapis.com/Job\"K\n\020ResumeJobRequest\0227" + + "\n\004name\030\001 \001(\tB)\340A\002\372A#\n!cloudscheduler.goo" + + "gleapis.com/Job\"H\n\rRunJobRequest\0227\n\004name" + + "\030\001 \001(\tB)\340A\002\372A#\n!cloudscheduler.googleapi" + + "s.com/Job2\263\n\n\016CloudScheduler\022\236\001\n\010ListJob" + + "s\022*.google.cloud.scheduler.v1.ListJobsRe" + + "quest\032+.google.cloud.scheduler.v1.ListJo" + + "bsResponse\"9\202\323\344\223\002*\022(/v1/{parent=projects" + + "/*/locations/*}/jobs\332A\006parent\022\213\001\n\006GetJob" + + "\022(.google.cloud.scheduler.v1.GetJobReque" + "st\032\036.google.cloud.scheduler.v1.Job\"7\202\323\344\223" - + "\0021\",/v1/{name=projects/*/locations/*/job" - + "s/*}:run:\001*B\201\001\n\035com.google.cloud.schedul" - + "er.v1B\016SchedulerProtoP\001ZBgoogle.golang.o" - + "rg/genproto/googleapis/cloud/scheduler/v" - + "1;scheduler\242\002\tSCHEDULERb\006proto3" + + "\002*\022(/v1/{name=projects/*/locations/*/job" + + "s/*}\332A\004name\022\234\001\n\tCreateJob\022+.google.cloud" + + ".scheduler.v1.CreateJobRequest\032\036.google." + + "cloud.scheduler.v1.Job\"B\202\323\344\223\002/\"(/v1/{par" + + "ent=projects/*/locations/*}/jobs:\003job\332A\n" + + "parent,job\022\245\001\n\tUpdateJob\022+.google.cloud." + + "scheduler.v1.UpdateJobRequest\032\036.google.c" + + "loud.scheduler.v1.Job\"K\202\323\344\223\00232,/v1/{job." + + "name=projects/*/locations/*/jobs/*}:\003job" + + "\332A\017job,update_mask\022\211\001\n\tDeleteJob\022+.googl" + + "e.cloud.scheduler.v1.DeleteJobRequest\032\026." + + "google.protobuf.Empty\"7\202\323\344\223\002**(/v1/{name" + + "=projects/*/locations/*/jobs/*}\332A\004name\022\230" + + "\001\n\010PauseJob\022*.google.cloud.scheduler.v1." + + "PauseJobRequest\032\036.google.cloud.scheduler" + + ".v1.Job\"@\202\323\344\223\0023\"./v1/{name=projects/*/lo" + + "cations/*/jobs/*}:pause:\001*\332A\004name\022\233\001\n\tRe" + + "sumeJob\022+.google.cloud.scheduler.v1.Resu" + + "meJobRequest\032\036.google.cloud.scheduler.v1" + + ".Job\"A\202\323\344\223\0024\"//v1/{name=projects/*/locat" + + "ions/*/jobs/*}:resume:\001*\332A\004name\022\222\001\n\006RunJ" + + "ob\022(.google.cloud.scheduler.v1.RunJobReq" + + "uest\032\036.google.cloud.scheduler.v1.Job\">\202\323" + + "\344\223\0021\",/v1/{name=projects/*/locations/*/j" + + "obs/*}:run:\001*\332A\004name\032Q\312A\035cloudscheduler." + + "googleapis.com\322A.https://www.googleapis." + + "com/auth/cloud-platformB\201\001\n\035com.google.c" + + "loud.scheduler.v1B\016SchedulerProtoP\001ZBgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/scheduler/v1;scheduler\242\002\tSCHEDULERb\006pro" + + "to3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -122,6 +136,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.scheduler.v1.JobProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -202,10 +218,17 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.scheduler.v1.JobProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java index b20c09be939d..e1549f7d61a9 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/TargetProto.java @@ -58,8 +58,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n&google/cloud/scheduler/v1/target.proto" - + "\022\031google.cloud.scheduler.v1\032\034google/api/" - + "annotations.proto\032\031google/protobuf/any.p" + + "\022\031google.cloud.scheduler.v1\032\031google/api/" + + "resource.proto\032\034google/api/annotations.p" + "roto\"\352\002\n\nHttpTarget\022\013\n\003uri\030\001 \001(\t\022:\n\013http" + "_method\030\002 \001(\0162%.google.cloud.scheduler.v" + "1.HttpMethod\022C\n\007headers\030\003 \003(\01322.google.c" @@ -77,22 +77,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004 \003(\0132;.google.cloud.scheduler.v1.AppEng" + "ineHttpTarget.HeadersEntry\022\014\n\004body\030\005 \001(\014" + "\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"\260\001\n\014PubsubTarget\022\022\n\ntopic_name\030" - + "\001 \001(\t\022\014\n\004data\030\003 \001(\014\022K\n\nattributes\030\004 \003(\0132" - + "7.google.cloud.scheduler.v1.PubsubTarget" - + ".AttributesEntry\0321\n\017AttributesEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020AppEngine" - + "Routing\022\017\n\007service\030\001 \001(\t\022\017\n\007version\030\002 \001(" - + "\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t\":\n\nOAu" - + "thToken\022\035\n\025service_account_email\030\001 \001(\t\022\r" - + "\n\005scope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025service_ac" - + "count_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t*s\n\nH" - + "ttpMethod\022\033\n\027HTTP_METHOD_UNSPECIFIED\020\000\022\010" - + "\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020\004\022\n\n\006" - + "DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007Br\n\035com." - + "google.cloud.scheduler.v1B\013TargetProtoP\001" - + "ZBgoogle.golang.org/genproto/googleapis/" - + "cloud/scheduler/v1;schedulerb\006proto3" + + " \001(\t:\0028\001\"\322\001\n\014PubsubTarget\0224\n\ntopic_name\030" + + "\001 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" + + "\014\n\004data\030\003 \001(\014\022K\n\nattributes\030\004 \003(\01327.goog" + + "le.cloud.scheduler.v1.PubsubTarget.Attri" + + "butesEntry\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020AppEngineRoutin" + + "g\022\017\n\007service\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\020\n\010i" + + "nstance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t\":\n\nOAuthToke" + + "n\022\035\n\025service_account_email\030\001 \001(\t\022\r\n\005scop" + + "e\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025service_account_" + + "email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t*s\n\nHttpMet" + + "hod\022\033\n\027HTTP_METHOD_UNSPECIFIED\020\000\022\010\n\004POST" + + "\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020\004\022\n\n\006DELETE" + + "\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007B\265\001\n\035com.googl" + + "e.cloud.scheduler.v1B\013TargetProtoP\001ZBgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/scheduler/v1;scheduler\352A@\n\033pubsub.googl" + + "eapis.com/Topic\022!projects/{project}/topi" + + "cs/{topic}b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -105,8 +108,8 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), }, assigner); internal_static_google_cloud_scheduler_v1_HttpTarget_descriptor = @@ -189,8 +192,14 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( new java.lang.String[] { "ServiceAccountEmail", "Audience", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java index 870c893d62a4..02b54fc26f27 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequest.java @@ -118,13 +118,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required.
-   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    * Output only fields cannot be modified using UpdateJob.
    * Any value specified for an output only field will be ignored.
    * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public boolean hasJob() { return job_ != null; @@ -133,13 +132,12 @@ public boolean hasJob() { * * *
-   * Required.
-   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    * Output only fields cannot be modified using UpdateJob.
    * Any value specified for an output only field will be ignored.
    * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.scheduler.v1.Job getJob() { return job_ == null ? com.google.cloud.scheduler.v1.Job.getDefaultInstance() : job_; @@ -148,13 +146,12 @@ public com.google.cloud.scheduler.v1.Job getJob() { * * *
-   * Required.
-   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    * Output only fields cannot be modified using UpdateJob.
    * Any value specified for an output only field will be ignored.
    * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { return getJob(); @@ -169,7 +166,8 @@ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasUpdateMask() { return updateMask_ != null; @@ -181,7 +179,8 @@ public boolean hasUpdateMask() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; @@ -193,7 +192,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -565,13 +565,13 @@ public Builder mergeFrom( * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; @@ -580,13 +580,13 @@ public boolean hasJob() { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.scheduler.v1.Job getJob() { if (jobBuilder_ == null) { @@ -599,13 +599,13 @@ public com.google.cloud.scheduler.v1.Job getJob() { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob(com.google.cloud.scheduler.v1.Job value) { if (jobBuilder_ == null) { @@ -624,13 +624,13 @@ public Builder setJob(com.google.cloud.scheduler.v1.Job value) { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) { if (jobBuilder_ == null) { @@ -646,13 +646,13 @@ public Builder setJob(com.google.cloud.scheduler.v1.Job.Builder builderForValue) * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) { if (jobBuilder_ == null) { @@ -672,13 +672,13 @@ public Builder mergeJob(com.google.cloud.scheduler.v1.Job value) { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearJob() { if (jobBuilder_ == null) { @@ -695,13 +695,13 @@ public Builder clearJob() { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() { @@ -712,13 +712,13 @@ public com.google.cloud.scheduler.v1.Job.Builder getJobBuilder() { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { @@ -731,13 +731,13 @@ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { * * *
-     * Required.
-     * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+     * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
      * Output only fields cannot be modified using UpdateJob.
      * Any value specified for an output only field will be ignored.
      * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.scheduler.v1.Job, @@ -769,7 +769,8 @@ public com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; @@ -781,7 +782,8 @@ public boolean hasUpdateMask() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { @@ -799,7 +801,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -821,7 +824,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -840,7 +844,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -864,7 +869,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -884,7 +890,8 @@ public Builder clearUpdateMask() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -898,7 +905,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -916,7 +924,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java index 0993850628ad..96d387b69def 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/UpdateJobRequestOrBuilder.java @@ -12,39 +12,36 @@ public interface UpdateJobRequestOrBuilder * * *
-   * Required.
-   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    * Output only fields cannot be modified using UpdateJob.
    * Any value specified for an output only field will be ignored.
    * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ boolean hasJob(); /** * * *
-   * Required.
-   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    * Output only fields cannot be modified using UpdateJob.
    * Any value specified for an output only field will be ignored.
    * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.scheduler.v1.Job getJob(); /** * * *
-   * Required.
-   * The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
+   * Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
    * Output only fields cannot be modified using UpdateJob.
    * Any value specified for an output only field will be ignored.
    * 
* - * .google.cloud.scheduler.v1.Job job = 1; + * .google.cloud.scheduler.v1.Job job = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.scheduler.v1.JobOrBuilder getJobOrBuilder(); @@ -55,7 +52,8 @@ public interface UpdateJobRequestOrBuilder * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean hasUpdateMask(); /** @@ -65,7 +63,8 @@ public interface UpdateJobRequestOrBuilder * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMask getUpdateMask(); /** @@ -75,7 +74,8 @@ public interface UpdateJobRequestOrBuilder * A mask used to specify which fields of the job are being updated. * * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto index a68446235c38..524ed388fafb 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/cloudscheduler.proto @@ -18,6 +18,8 @@ syntax = "proto3"; package google.cloud.scheduler.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/scheduler/v1/job.proto"; import "google/protobuf/empty.proto"; @@ -32,11 +34,15 @@ option objc_class_prefix = "SCHEDULER"; // The Cloud Scheduler API allows external entities to reliably // schedule asynchronous jobs. service CloudScheduler { + option (google.api.default_host) = "cloudscheduler.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Lists jobs. rpc ListJobs(ListJobsRequest) returns (ListJobsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/jobs" }; + option (google.api.method_signature) = "parent"; } // Gets a job. @@ -44,6 +50,7 @@ service CloudScheduler { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/jobs/*}" }; + option (google.api.method_signature) = "name"; } // Creates a job. @@ -52,6 +59,7 @@ service CloudScheduler { post: "/v1/{parent=projects/*/locations/*}/jobs" body: "job" }; + option (google.api.method_signature) = "parent,job"; } // Updates a job. @@ -68,6 +76,7 @@ service CloudScheduler { patch: "/v1/{job.name=projects/*/locations/*/jobs/*}" body: "job" }; + option (google.api.method_signature) = "job,update_mask"; } // Deletes a job. @@ -75,6 +84,7 @@ service CloudScheduler { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/jobs/*}" }; + option (google.api.method_signature) = "name"; } // Pauses a job. @@ -89,6 +99,7 @@ service CloudScheduler { post: "/v1/{name=projects/*/locations/*/jobs/*}:pause" body: "*" }; + option (google.api.method_signature) = "name"; } // Resume a job. @@ -102,6 +113,7 @@ service CloudScheduler { post: "/v1/{name=projects/*/locations/*/jobs/*}:resume" body: "*" }; + option (google.api.method_signature) = "name"; } // Forces a job to run now. @@ -113,16 +125,20 @@ service CloudScheduler { post: "/v1/{name=projects/*/locations/*/jobs/*}:run" body: "*" }; + option (google.api.method_signature) = "name"; } } // Request message for listing jobs using [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. message ListJobsRequest { - // Required. - // - // The location name. For example: + // Required. The location name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "locations.googleapis.com/Location" + } + ]; // Requested page size. // @@ -159,79 +175,94 @@ message ListJobsResponse { // Request message for [GetJob][google.cloud.scheduler.v1.CloudScheduler.GetJob]. message GetJobRequest { - // Required. - // - // The job name. For example: + // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudscheduler.googleapis.com/Job" + } + ]; } // Request message for [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob]. message CreateJobRequest { - // Required. - // - // The location name. For example: + // Required. The location name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "locations.googleapis.com/Location" + } + ]; - // Required. - // - // The job to add. The user can optionally specify a name for the + // Required. The job to add. The user can optionally specify a name for the // job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an // existing job. If a name is not specified then the system will // generate a random unique name that will be returned // ([name][google.cloud.scheduler.v1.Job.name]) in the response. - Job job = 2; + Job job = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. message UpdateJobRequest { - // Required. - // - // The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + // Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. // // Output only fields cannot be modified using UpdateJob. // Any value specified for an output only field will be ignored. - Job job = 1; + Job job = 1 [(google.api.field_behavior) = REQUIRED]; // A mask used to specify which fields of the job are being updated. - google.protobuf.FieldMask update_mask = 2; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for deleting a job using // [DeleteJob][google.cloud.scheduler.v1.CloudScheduler.DeleteJob]. message DeleteJobRequest { - // Required. - // - // The job name. For example: + // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudscheduler.googleapis.com/Job" + } + ]; } // Request message for [PauseJob][google.cloud.scheduler.v1.CloudScheduler.PauseJob]. message PauseJobRequest { - // Required. - // - // The job name. For example: + // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudscheduler.googleapis.com/Job" + } + ]; } // Request message for [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. message ResumeJobRequest { - // Required. - // - // The job name. For example: + // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudscheduler.googleapis.com/Job" + } + ]; } // Request message for forcing a job to run now using // [RunJob][google.cloud.scheduler.v1.CloudScheduler.RunJob]. message RunJobRequest { - // Required. - // - // The job name. For example: + // Required. The job name. For example: // `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudscheduler.googleapis.com/Job" + } + ]; } diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto index 60b47263151b..d26070266b18 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/job.proto @@ -17,12 +17,12 @@ syntax = "proto3"; package google.cloud.scheduler.v1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; import "google/cloud/scheduler/v1/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; +import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; option java_multiple_files = true; @@ -32,6 +32,11 @@ option java_package = "com.google.cloud.scheduler.v1"; // Configuration for a job. // The maximum allowed size for a job is 100KB. message Job { + option (google.api.resource) = { + type: "cloudscheduler.googleapis.com/Job" + pattern: "projects/{project}/locations/{location}/jobs/{job}" + }; + // State of the job. enum State { // Unspecified state. diff --git a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto index e33b1558e53d..9a8f32f7c60e 100644 --- a/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto +++ b/google-api-grpc/proto-google-cloud-scheduler-v1/src/main/proto/google/cloud/scheduler/v1/target.proto @@ -17,8 +17,8 @@ syntax = "proto3"; package google.cloud.scheduler.v1; +import "google/api/resource.proto"; import "google/api/annotations.proto"; -import "google/protobuf/any.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/scheduler/v1;scheduler"; option java_multiple_files = true; @@ -32,9 +32,7 @@ option java_package = "com.google.cloud.scheduler.v1"; // constitutes a failed execution. For a redirected request, the response // returned by the redirected request is considered. message HttpTarget { - // Required. - // - // The full URI path that the request will be sent to. This string + // Required. The full URI path that the request will be sent to. This string // must begin with either "http://" or "https://". Some examples of // valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are: // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will @@ -77,8 +75,8 @@ message HttpTarget { // will be generated and attached as an `Authorization` header in the HTTP // request. // - // This type of authorization should be used when sending requests to a GCP - // endpoint. + // This type of authorization should generally only be used when calling + // Google APIs hosted on *.googleapis.com. OAuthToken oauth_token = 5; // If specified, an @@ -86,8 +84,9 @@ message HttpTarget { // token will be generated and attached as an `Authorization` header in the // HTTP request. // - // This type of authorization should be used when sending requests to third - // party endpoints or Cloud Run. + // This type of authorization can be used for many scenarios, including + // calling Cloud Run, or endpoints where you intend to validate the token + // yourself. OidcToken oidc_token = 6; } } @@ -162,16 +161,16 @@ message AppEngineHttpTarget { // Pub/Sub target. The job will be delivered by publishing a message to // the given Pub/Sub topic. message PubsubTarget { - // Required. - // - // The name of the Cloud Pub/Sub topic to which messages will + // 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; + string topic_name = 1 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; // The message payload for PubsubMessage. // @@ -315,8 +314,8 @@ enum HttpMethod { // Contains information needed for generating an // [OAuth token](https://developers.google.com/identity/protocols/OAuth2). -// This type of authorization should be used when sending requests to a GCP -// endpoint. +// This type of authorization should generally only be used when calling Google +// APIs hosted on *.googleapis.com. message OAuthToken { // [Service account email](https://cloud.google.com/iam/docs/service-accounts) // to be used for generating OAuth token. @@ -332,9 +331,10 @@ message OAuthToken { // Contains information needed for generating an // [OpenID Connect -// token](https://developers.google.com/identity/protocols/OpenIDConnect). This -// type of authorization should be used when sending requests to third party -// endpoints or Cloud Run. +// token](https://developers.google.com/identity/protocols/OpenIDConnect). +// This type of authorization can be used for many scenarios, including +// calling Cloud Run, or endpoints where you intend to validate the token +// yourself. message OidcToken { // [Service account email](https://cloud.google.com/iam/docs/service-accounts) // to be used for generating OIDC token. @@ -346,3 +346,11 @@ message OidcToken { // specified in target will be used. string audience = 2; } + +// The Pub/Sub Topic resource definition is in google/cloud/pubsub/v1/, +// but we do not import that proto directly; therefore, we redefine the +// pattern here. +option (google.api.resource_definition) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" +}; diff --git a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java index 2cab81ae12c0..1625368c0f1b 100644 --- a/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java +++ b/google-cloud-clients/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/CloudSchedulerClient.java @@ -171,8 +171,8 @@ public CloudSchedulerStub getStub() { * } * * - * @param parent Required. - *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param parent Required. The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListJobsPagedResponse listJobs(LocationName parent) { @@ -196,8 +196,8 @@ public final ListJobsPagedResponse listJobs(LocationName parent) { * } * * - * @param parent Required. - *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param parent Required. The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListJobsPagedResponse listJobs(String parent) { @@ -298,8 +298,8 @@ public final UnaryCallable listJobsCallable() * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job getJob(JobName name) { @@ -322,8 +322,8 @@ public final Job getJob(JobName name) { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job getJob(String name) { @@ -391,10 +391,9 @@ public final UnaryCallable getJobCallable() { * } * * - * @param parent Required. - *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. - * @param job Required. - *

The job to add. The user can optionally specify a name for the job in + * @param parent Required. The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param job Required. The job to add. The user can optionally specify a name for the job in * [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] * cannot be the same as an existing job. If a name is not specified then the system will * generate a random unique name that will be returned @@ -425,10 +424,9 @@ public final Job createJob(LocationName parent, Job job) { * } * * - * @param parent Required. - *

The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`. - * @param job Required. - *

The job to add. The user can optionally specify a name for the job in + * @param parent Required. The location name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID`. + * @param job Required. The job to add. The user can optionally specify a name for the job in * [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] * cannot be the same as an existing job. If a name is not specified then the system will * generate a random unique name that will be returned @@ -512,8 +510,8 @@ public final UnaryCallable createJobCallable() { * } * * - * @param job Required. - *

The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified. + * @param job Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be + * specified. *

Output only fields cannot be modified using UpdateJob. Any value specified for an output * only field will be ignored. * @param updateMask A mask used to specify which fields of the job are being updated. @@ -604,8 +602,8 @@ public final UnaryCallable updateJobCallable() { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteJob(JobName name) { @@ -628,8 +626,8 @@ public final void deleteJob(JobName name) { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteJob(String name) { @@ -702,8 +700,8 @@ public final UnaryCallable deleteJobCallable() { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job pauseJob(JobName name) { @@ -732,8 +730,8 @@ public final Job pauseJob(JobName name) { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job pauseJob(String name) { @@ -818,8 +816,8 @@ public final UnaryCallable pauseJobCallable() { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job resumeJob(JobName name) { @@ -848,8 +846,8 @@ public final Job resumeJob(JobName name) { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job resumeJob(String name) { @@ -931,8 +929,8 @@ public final UnaryCallable resumeJobCallable() { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job runJob(JobName name) { @@ -958,8 +956,8 @@ public final Job runJob(JobName name) { * } * * - * @param name Required. - *

The job name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. + * @param name Required. The job name. For example: + * `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Job runJob(String name) { diff --git a/google-cloud-clients/google-cloud-scheduler/synth.metadata b/google-cloud-clients/google-cloud-scheduler/synth.metadata index 9e8a8b289e10..38f261c1d98f 100644 --- a/google-cloud-clients/google-cloud-scheduler/synth.metadata +++ b/google-cloud-clients/google-cloud-scheduler/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-02T07:56:00.862961Z", + "updateTime": "2019-10-12T07:53:23.935777Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.0", - "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d" + "version": "0.39.0", + "dockerImage": "googleapis/artman@sha256:72554d0b3bdc0b4ac7d6726a6a606c00c14b454339037ed86be94574fb05d9f3" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1b1ef1ca146c2119f077bca5e2b638c6bacb0925", - "internalRef": "261214002" + "sha": "af8dd2c1750558b538eaa6bdaa3bc899079533ee", + "internalRef": "274260771" } } ],