From 6653aca8b76d3558883953cedf05b5f68262e659 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Nov 2022 22:12:37 +0000 Subject: [PATCH] feat: [batch] Adds named reservation to InstancePolicy (#8822) - [ ] Regenerate this pull request now. --- docs:Remove "not yet implemented" for Accelerator & Refine Volume API docs --- docs: update the job id format requirement PiperOrigin-RevId: 489502315 Source-Link: https://togithub.com/googleapis/googleapis/commit/db1cc1139fe0def1e87ead1fffbc5bedbeccb887 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/fcc564ef064c7dff31d7970e12318ad084703ac6 Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiZmNjNTY0ZWYwNjRjN2RmZjMxZDc5NzBlMTIzMThhZDA4NDcwM2FjNiJ9 BEGIN_NESTED_COMMIT feat: [batch] Adds named reservation to InstancePolicy --- docs:Remove "not yet implemented" for Accelerator & Refine Volume API docs --- docs: update the job id format requirement PiperOrigin-RevId: 489501779 Source-Link: https://togithub.com/googleapis/googleapis/commit/488a4bdeebf9c7f505f48bed23f0b95fcbbec0bb Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/5b3d3a550015e9367ad13ee5f9febe0c3f84cf33 Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiNWIzZDNhNTUwMDE1ZTkzNjdhZDEzZWU1ZjlmZWJlMGMzZjg0Y2YzMyJ9 END_NESTED_COMMIT --- java-batch/README.md | 32 +- .../cloud/batch/v1/BatchServiceClient.java | 12 +- .../batch/v1alpha/BatchServiceClient.java | 12 +- .../cloud/batch/v1/AllocationPolicy.java | 92 ++-- .../cloud/batch/v1/CreateJobRequest.java | 35 +- .../batch/v1/CreateJobRequestOrBuilder.java | 10 +- .../java/com/google/cloud/batch/v1/GCS.java | 4 +- .../java/com/google/cloud/batch/v1/NFS.java | 32 +- .../google/cloud/batch/v1/NFSOrBuilder.java | 8 +- .../com/google/cloud/batch/v1/Runnable.java | 36 +- .../com/google/cloud/batch/v1/Volume.java | 357 ++++++++------- .../cloud/batch/v1/VolumeOrBuilder.java | 105 +++-- .../proto/google/cloud/batch/v1/batch.proto | 5 +- .../proto/google/cloud/batch/v1/job.proto | 7 +- .../proto/google/cloud/batch/v1/task.proto | 4 +- .../proto/google/cloud/batch/v1/volume.proto | 42 +- .../cloud/batch/v1alpha/AllocationPolicy.java | 411 +++++++++++++----- .../v1alpha/AllocationPolicyOrBuilder.java | 36 +- .../cloud/batch/v1alpha/CreateJobRequest.java | 35 +- .../v1alpha/CreateJobRequestOrBuilder.java | 10 +- .../com/google/cloud/batch/v1alpha/GCS.java | 4 +- .../google/cloud/batch/v1alpha/JobProto.java | 84 ++-- .../com/google/cloud/batch/v1alpha/NFS.java | 32 +- .../cloud/batch/v1alpha/NFSOrBuilder.java | 8 +- .../com/google/cloud/batch/v1alpha/PD.java | 12 +- .../cloud/batch/v1alpha/PDOrBuilder.java | 2 +- .../google/cloud/batch/v1alpha/Runnable.java | 36 +- .../cloud/batch/v1alpha/ServiceAccount.java | 26 +- .../v1alpha/ServiceAccountOrBuilder.java | 8 +- .../google/cloud/batch/v1alpha/Volume.java | 389 ++++++++++------- .../cloud/batch/v1alpha/VolumeOrBuilder.java | 115 +++-- .../google/cloud/batch/v1alpha/batch.proto | 5 +- .../google/cloud/batch/v1alpha/job.proto | 12 +- .../google/cloud/batch/v1alpha/task.proto | 4 +- .../google/cloud/batch/v1alpha/volume.proto | 46 +- 35 files changed, 1199 insertions(+), 869 deletions(-) diff --git a/java-batch/README.md b/java-batch/README.md index e7ef9e833124..3ef20c9c9e7b 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-batch - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.5.0' +implementation 'com.google.cloud:google-cloud-batch:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.6.0" ``` ## Authentication @@ -165,16 +165,16 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/ [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-win.svg -[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java8-win.html -[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java11.svg -[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-batch/java11.html +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-batch&core=gav @@ -186,9 +186,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-batch/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-batch/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-batch/blob/main/LICENSE +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=batch.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java index 9c2ea0f60d33..e5f701a74046 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/BatchServiceClient.java @@ -236,9 +236,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * "projects/{project}/locations/{location}" * @param job Required. The Job to create. * @param jobId ID used to uniquely identify the Job within its parent scope. This field should - * contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-' - * character cannot be the first or the last one. A system generated ID will be used if the - * field is not set. + * contain at most 63 characters and must start with lowercase characters. Only lowercase + * characters, numbers and '-' are accepted. The '-' character cannot be the first or the last + * one. A system generated ID will be used if the field is not set. *

The job.name field in the request will be ignored and the created resource name of the * Job will be "{parent}/jobs/{job_id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -277,9 +277,9 @@ public final Job createJob(LocationName parent, Job job, String jobId) { * "projects/{project}/locations/{location}" * @param job Required. The Job to create. * @param jobId ID used to uniquely identify the Job within its parent scope. This field should - * contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-' - * character cannot be the first or the last one. A system generated ID will be used if the - * field is not set. + * contain at most 63 characters and must start with lowercase characters. Only lowercase + * characters, numbers and '-' are accepted. The '-' character cannot be the first or the last + * one. A system generated ID will be used if the field is not set. *

The job.name field in the request will be ignored and the created resource name of the * Job will be "{parent}/jobs/{job_id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java index b1fa16a94fbe..145b69a137d2 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/BatchServiceClient.java @@ -237,9 +237,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * "projects/{project}/locations/{location}" * @param job Required. The Job to create. * @param jobId ID used to uniquely identify the Job within its parent scope. This field should - * contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-' - * character cannot be the first or the last one. A system generated ID will be used if the - * field is not set. + * contain at most 63 characters and must start with lowercase characters. Only lowercase + * characters, numbers and '-' are accepted. The '-' character cannot be the first or the last + * one. A system generated ID will be used if the field is not set. *

The job.name field in the request will be ignored and the created resource name of the * Job will be "{parent}/jobs/{job_id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -278,9 +278,9 @@ public final Job createJob(LocationName parent, Job job, String jobId) { * "projects/{project}/locations/{location}" * @param job Required. The Job to create. * @param jobId ID used to uniquely identify the Job within its parent scope. This field should - * contain at most 63 characters. Only alphanumeric characters or '-' are accepted. The '-' - * character cannot be the first or the last one. A system generated ID will be used if the - * field is not set. + * contain at most 63 characters and must start with lowercase characters. Only lowercase + * characters, numbers and '-' are accepted. The '-' character cannot be the first or the last + * one. A system generated ID will be used if the field is not set. *

The job.name field in the request will be ignored and the created resource name of the * Job will be "{parent}/jobs/{job_id}". * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index eb76844fd9c5..0713a7e4ed59 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -2898,7 +2898,7 @@ public interface AttachedDiskOrBuilder * * *

-   * A new or an existing persistent disk or a local ssd attached to a VM
+   * A new or an existing persistent disk (PD) or a local ssd attached to a VM
    * instance.
    * 
* @@ -3349,7 +3349,7 @@ protected Builder newBuilderForType( * * *
-     * A new or an existing persistent disk or a local ssd attached to a VM
+     * A new or an existing persistent disk (PD) or a local ssd attached to a VM
      * instance.
      * 
* @@ -4108,7 +4108,7 @@ public interface AcceleratorOrBuilder * * *
-   * Accelerator describes Compute Engine accelerators to be attached to VMs.
+   * Accelerator describes Compute Engine accelerators to be attached to the VM.
    * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.Accelerator} @@ -4426,7 +4426,7 @@ protected Builder newBuilderForType( * * *
-     * Accelerator describes Compute Engine accelerators to be attached to VMs.
+     * Accelerator describes Compute Engine accelerators to be attached to the VM.
      * 
* * Protobuf type {@code google.cloud.batch.v1.AllocationPolicy.Accelerator} @@ -5001,7 +5001,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5012,7 +5011,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5023,7 +5021,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5034,7 +5031,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5046,7 +5042,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5059,7 +5054,7 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5070,7 +5065,7 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5081,7 +5076,7 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5092,7 +5087,7 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5104,7 +5099,7 @@ com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsO * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5316,7 +5311,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvision * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5331,7 +5325,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvision * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5346,7 +5339,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.ProvisioningModel getProvision * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5360,7 +5352,6 @@ public int getAcceleratorsCount() { * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5374,7 +5365,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(in * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -5392,7 +5382,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AcceleratorOrBuilder getAccele * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5406,7 +5396,7 @@ public java.util.List g * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5422,7 +5412,7 @@ public java.util.List g * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5436,7 +5426,7 @@ public int getDisksCount() { * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -5450,7 +5440,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDisks(int inde * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6335,7 +6325,6 @@ private void ensureAcceleratorsIsMutable() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6353,7 +6342,6 @@ private void ensureAcceleratorsIsMutable() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6370,7 +6358,6 @@ public int getAcceleratorsCount() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6387,7 +6374,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator getAccelerators(in * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6411,7 +6397,6 @@ public Builder setAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6433,7 +6418,6 @@ public Builder setAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6456,7 +6440,6 @@ public Builder addAccelerators(com.google.cloud.batch.v1.AllocationPolicy.Accele * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6480,7 +6463,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6501,7 +6483,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6523,7 +6504,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6545,7 +6525,6 @@ public Builder addAllAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6565,7 +6544,6 @@ public Builder clearAccelerators() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6585,7 +6563,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6599,7 +6576,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6617,7 +6593,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6636,7 +6611,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6652,7 +6626,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder getAcceler * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6668,7 +6641,6 @@ public com.google.cloud.batch.v1.AllocationPolicy.Accelerator.Builder addAcceler * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5; @@ -6721,7 +6693,7 @@ private void ensureDisksIsMutable() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6739,7 +6711,7 @@ private void ensureDisksIsMutable() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6756,7 +6728,7 @@ public int getDisksCount() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6773,7 +6745,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk getDisks(int inde * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6797,7 +6769,7 @@ public Builder setDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6819,7 +6791,7 @@ public Builder setDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6842,7 +6814,7 @@ public Builder addDisks(com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6866,7 +6838,7 @@ public Builder addDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6887,7 +6859,7 @@ public Builder addDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6909,7 +6881,7 @@ public Builder addDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6931,7 +6903,7 @@ public Builder addAllDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6951,7 +6923,7 @@ public Builder clearDisks() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6971,7 +6943,7 @@ public Builder removeDisks(int index) { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -6985,7 +6957,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder getDisksB * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -7003,7 +6975,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -7022,7 +6994,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDiskOrBuilder getDisks * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -7037,7 +7009,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksB * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; @@ -7054,7 +7026,7 @@ public com.google.cloud.batch.v1.AllocationPolicy.AttachedDisk.Builder addDisksB * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java index f672281529d9..6cf3602c0d8e 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequest.java @@ -131,8 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
@@ -160,8 +161,9 @@ public java.lang.String getJobId() {
    *
    * 
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
@@ -834,8 +836,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -862,8 +865,9 @@ public java.lang.String getJobId() {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -890,8 +894,9 @@ public com.google.protobuf.ByteString getJobIdBytes() {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -917,8 +922,9 @@ public Builder setJobId(java.lang.String value) {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -940,8 +946,9 @@ public Builder clearJobId() {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java
index 4a689325c446..1572e365cbba 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/CreateJobRequestOrBuilder.java
@@ -59,8 +59,9 @@ public interface CreateJobRequestOrBuilder
    *
    * 
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
@@ -77,8 +78,9 @@ public interface CreateJobRequestOrBuilder
    *
    * 
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
index e8e21e98f2e2..ebab0258ee9d 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/GCS.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * Represents a Google Cloud Storage volume source config.
+ * Represents a Google Cloud Storage volume.
  * 
* * Protobuf type {@code google.cloud.batch.v1.GCS} @@ -278,7 +278,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents a Google Cloud Storage volume source config.
+   * Represents a Google Cloud Storage volume.
    * 
* * Protobuf type {@code google.cloud.batch.v1.GCS} diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java index 541031ad64b6..f480fc72b871 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFS.java @@ -22,7 +22,7 @@ * * *
- * Represents an NFS server and remote path: <server>:<remote_path>
+ * Represents an NFS volume.
  * 
* * Protobuf type {@code google.cloud.batch.v1.NFS} @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -96,7 +96,7 @@ public java.lang.String getServer() { * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -122,7 +122,7 @@ public com.google.protobuf.ByteString getServerBytes() { * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; @@ -145,7 +145,7 @@ public java.lang.String getRemotePath() { * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; @@ -335,7 +335,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents an NFS server and remote path: <server>:<remote_path>
+   * Represents an NFS volume.
    * 
* * Protobuf type {@code google.cloud.batch.v1.NFS} @@ -517,7 +517,7 @@ public Builder mergeFrom( * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -539,7 +539,7 @@ public java.lang.String getServer() { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -561,7 +561,7 @@ public com.google.protobuf.ByteString getServerBytes() { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -582,7 +582,7 @@ public Builder setServer(java.lang.String value) { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -599,7 +599,7 @@ public Builder clearServer() { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -623,7 +623,7 @@ public Builder setServerBytes(com.google.protobuf.ByteString value) { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -645,7 +645,7 @@ public java.lang.String getRemotePath() { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -667,7 +667,7 @@ public com.google.protobuf.ByteString getRemotePathBytes() { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -688,7 +688,7 @@ public Builder setRemotePath(java.lang.String value) { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -705,7 +705,7 @@ public Builder clearRemotePath() { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java index 88cfdd07f798..0ee6e4e50ea0 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/NFSOrBuilder.java @@ -27,7 +27,7 @@ public interface NFSOrBuilder * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -39,7 +39,7 @@ public interface NFSOrBuilder * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -52,7 +52,7 @@ public interface NFSOrBuilder * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; @@ -64,7 +64,7 @@ public interface NFSOrBuilder * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java index 831e9499b001..c1a4d78d2c38 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Runnable.java @@ -286,7 +286,7 @@ public interface ContainerOrBuilder * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -300,7 +300,7 @@ public interface ContainerOrBuilder * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -315,7 +315,7 @@ public interface ContainerOrBuilder * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -329,7 +329,7 @@ public interface ContainerOrBuilder * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -708,7 +708,7 @@ public boolean getBlockExternalNetwork() { * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -733,7 +733,7 @@ public java.lang.String getUsername() { * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -761,7 +761,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -786,7 +786,7 @@ public java.lang.String getPassword() { * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -2091,7 +2091,7 @@ public Builder clearBlockExternalNetwork() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2115,7 +2115,7 @@ public java.lang.String getUsername() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2139,7 +2139,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2162,7 +2162,7 @@ public Builder setUsername(java.lang.String value) { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2181,7 +2181,7 @@ public Builder clearUsername() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2207,7 +2207,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2231,7 +2231,7 @@ public java.lang.String getPassword() { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2255,7 +2255,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2278,7 +2278,7 @@ public Builder setPassword(java.lang.String value) { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2297,7 +2297,7 @@ public Builder clearPassword() { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java index 0a5a07061069..7c31bfa2fb54 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/Volume.java @@ -22,9 +22,7 @@ * * *
- * Volume and mount parameters to be associated with a TaskSpec. A TaskSpec
- * might describe zero, one, or multiple volumes to be mounted as part of the
- * task.
+ * Volume describes a volume and parameters for it to be mounted to a VM.
  * 
* * Protobuf type {@code google.cloud.batch.v1.Volume} @@ -124,7 +122,8 @@ public SourceCase getSourceCase() { * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -139,7 +138,8 @@ public boolean hasNfs() { * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -157,7 +157,8 @@ public com.google.cloud.batch.v1.NFS getNfs() { * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -175,7 +176,7 @@ public com.google.cloud.batch.v1.NFSOrBuilder getNfsOrBuilder() { * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -190,7 +191,7 @@ public boolean hasGcs() { * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -208,7 +209,7 @@ public com.google.cloud.batch.v1.GCS getGcs() { * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -226,7 +227,11 @@ public com.google.cloud.batch.v1.GCSOrBuilder getGcsOrBuilder() { * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -240,7 +245,11 @@ public boolean hasDeviceName() { * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -267,7 +276,11 @@ public java.lang.String getDeviceName() { * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -297,7 +310,7 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -320,7 +333,7 @@ public java.lang.String getMountPath() { * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -346,14 +359,15 @@ public com.google.protobuf.ByteString getMountPathBytes() { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -367,14 +381,15 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -388,14 +403,15 @@ public int getMountOptionsCount() { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -410,14 +426,15 @@ public java.lang.String getMountOptions(int index) { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -658,9 +675,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Volume and mount parameters to be associated with a TaskSpec. A TaskSpec
-   * might describe zero, one, or multiple volumes to be mounted as part of the
-   * task.
+   * Volume describes a volume and parameters for it to be mounted to a VM.
    * 
* * Protobuf type {@code google.cloud.batch.v1.Volume} @@ -943,7 +958,8 @@ public Builder clearSource() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -958,7 +974,8 @@ public boolean hasNfs() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -983,7 +1000,8 @@ public com.google.cloud.batch.v1.NFS getNfs() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1005,7 +1023,8 @@ public Builder setNfs(com.google.cloud.batch.v1.NFS value) { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1024,7 +1043,8 @@ public Builder setNfs(com.google.cloud.batch.v1.NFS.Builder builderForValue) { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1059,7 +1079,8 @@ public Builder mergeNfs(com.google.cloud.batch.v1.NFS value) { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1084,7 +1105,8 @@ public Builder clearNfs() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1096,7 +1118,8 @@ public com.google.cloud.batch.v1.NFS.Builder getNfsBuilder() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1116,7 +1139,8 @@ public com.google.cloud.batch.v1.NFSOrBuilder getNfsOrBuilder() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -1153,7 +1177,7 @@ public com.google.cloud.batch.v1.NFSOrBuilder getNfsOrBuilder() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1168,7 +1192,7 @@ public boolean hasGcs() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1193,7 +1217,7 @@ public com.google.cloud.batch.v1.GCS getGcs() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1215,7 +1239,7 @@ public Builder setGcs(com.google.cloud.batch.v1.GCS value) { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1234,7 +1258,7 @@ public Builder setGcs(com.google.cloud.batch.v1.GCS.Builder builderForValue) { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1269,7 +1293,7 @@ public Builder mergeGcs(com.google.cloud.batch.v1.GCS value) { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1294,7 +1318,7 @@ public Builder clearGcs() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1306,7 +1330,7 @@ public com.google.cloud.batch.v1.GCS.Builder getGcsBuilder() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1326,7 +1350,7 @@ public com.google.cloud.batch.v1.GCSOrBuilder getGcsOrBuilder() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -1358,7 +1382,11 @@ public com.google.cloud.batch.v1.GCSOrBuilder getGcsOrBuilder() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1373,7 +1401,11 @@ public boolean hasDeviceName() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1401,7 +1433,11 @@ public java.lang.String getDeviceName() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1429,7 +1465,11 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1450,7 +1490,11 @@ public Builder setDeviceName(java.lang.String value) { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1469,7 +1513,11 @@ public Builder clearDeviceName() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1493,7 +1541,7 @@ public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1515,7 +1563,7 @@ public java.lang.String getMountPath() { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1537,7 +1585,7 @@ public com.google.protobuf.ByteString getMountPathBytes() { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1558,7 +1606,7 @@ public Builder setMountPath(java.lang.String value) { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1575,7 +1623,7 @@ public Builder clearMountPath() { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1607,14 +1655,15 @@ private void ensureMountOptionsIsMutable() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1628,14 +1677,15 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1649,14 +1699,15 @@ public int getMountOptionsCount() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1671,14 +1722,15 @@ public java.lang.String getMountOptions(int index) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1693,14 +1745,15 @@ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1722,14 +1775,15 @@ public Builder setMountOptions(int index, java.lang.String value) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1750,14 +1804,15 @@ public Builder addMountOptions(java.lang.String value) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1775,14 +1830,15 @@ public Builder addAllMountOptions(java.lang.Iterable values) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1799,14 +1855,15 @@ public Builder clearMountOptions() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java index f9a8cac972d0..07a94254bc72 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/VolumeOrBuilder.java @@ -27,7 +27,8 @@ public interface VolumeOrBuilder * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -39,7 +40,8 @@ public interface VolumeOrBuilder * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -51,7 +53,8 @@ public interface VolumeOrBuilder * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1.NFS nfs = 1; @@ -62,7 +65,7 @@ public interface VolumeOrBuilder * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -74,7 +77,7 @@ public interface VolumeOrBuilder * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -86,7 +89,7 @@ public interface VolumeOrBuilder * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1.GCS gcs = 3; @@ -97,7 +100,11 @@ public interface VolumeOrBuilder * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -109,7 +116,11 @@ public interface VolumeOrBuilder * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -121,7 +132,11 @@ public interface VolumeOrBuilder * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -134,7 +149,7 @@ public interface VolumeOrBuilder * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -146,7 +161,7 @@ public interface VolumeOrBuilder * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -159,14 +174,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -178,14 +194,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -197,14 +214,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -217,14 +235,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/batch.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/batch.proto index 5dfe9cad737a..1fa330088f6b 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/batch.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/batch.proto @@ -107,8 +107,9 @@ message CreateJobRequest { ]; // ID used to uniquely identify the Job within its parent scope. - // This field should contain at most 63 characters. - // Only alphanumeric characters or '-' are accepted. + // This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and '-' are accepted. // The '-' character cannot be the first or the last one. // A system generated ID will be used if the field is not set. // diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto index 69305e41cce9..0519f68f45dc 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto @@ -263,7 +263,7 @@ message AllocationPolicy { string disk_interface = 6; } - // A new or an existing persistent disk or a local ssd attached to a VM + // A new or an existing persistent disk (PD) or a local ssd attached to a VM // instance. message AttachedDisk { oneof attached { @@ -280,7 +280,7 @@ message AllocationPolicy { string device_name = 3; } - // Accelerator describes Compute Engine accelerators to be attached to VMs. + // Accelerator describes Compute Engine accelerators to be attached to the VM. message Accelerator { // The accelerator type. For example, "nvidia-tesla-t4". // See `gcloud compute accelerator-types list`. @@ -309,11 +309,10 @@ message AllocationPolicy { ProvisioningModel provisioning_model = 4; // The accelerators attached to each VM instance. - // Not yet implemented. repeated Accelerator accelerators = 5; // Non-boot disks to be attached for each VM created by this InstancePolicy. - // New disks will be deleted when the attached VM is deleted. + // New disks will be deleted when the VM is deleted. repeated AttachedDisk disks = 6; } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto index bec3531475e1..bc4dbfea3717 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/task.proto @@ -126,12 +126,12 @@ message Runnable { bool block_external_network = 9; // Optional username for logging in to a docker registry. If username - // matches `projects/*/secrets/*/versions/*` then Batch will read the + // matches "projects/*/secrets/*/versions/*" then Batch will read the // username from the Secret Manager. string username = 10; // Optional password for logging in to a docker registry. If password - // matches `projects/*/secrets/*/versions/*` then Batch will read the + // matches "projects/*/secrets/*/versions/*" then Batch will read the // password from the Secret Manager; string password = 11; } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto index 45399ccc6e12..7b6ebac48fba 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/volume.proto @@ -25,46 +25,50 @@ option objc_class_prefix = "GCB"; option php_namespace = "Google\\Cloud\\Batch\\V1"; option ruby_package = "Google::Cloud::Batch::V1"; -// Volume and mount parameters to be associated with a TaskSpec. A TaskSpec -// might describe zero, one, or multiple volumes to be mounted as part of the -// task. +// Volume describes a volume and parameters for it to be mounted to a VM. message Volume { // The source for the volume. oneof source { - // An NFS source for the volume (could be a Filestore, for example). + // A Network File System (NFS) volume. For example, a + // Filestore file share. NFS nfs = 1; - // A Google Cloud Storage source for the volume. + // A Google Cloud Storage (GCS) volume. GCS gcs = 3; - // Device name of an attached disk + // Device name of an attached disk volume, which should align with a + // device_name specified by + // job.allocation_policy.instances[0].policy.disks[i].device_name or + // defined by the given instance template in + // job.allocation_policy.instances[0].instance_template. string device_name = 6; } - // Mount path for the volume, e.g. /mnt/share + // The mount path for the volume, e.g. /mnt/disks/share. string mount_path = 4; - // Mount options - // For Google Cloud Storage, mount options are the global options supported by - // gcsfuse tool. Batch will use them to mount the volume with the following - // command: - // "gcsfuse [global options] bucket mountpoint". - // For PD, NFS, mount options are these supported by /etc/fstab. Batch will - // use Fstab to mount such volumes. - // https://help.ubuntu.com/community/Fstab + // For Google Cloud Storage (GCS), mount options are the options supported by + // the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). + // For existing persistent disks, mount options provided by the + // mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except + // writing are supported. This is due to restrictions of multi-writer mode + // (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). + // For other attached disks and Network File System (NFS), mount options are + // these supported by the mount command + // (https://man7.org/linux/man-pages/man8/mount.8.html). repeated string mount_options = 5; } -// Represents an NFS server and remote path: : +// Represents an NFS volume. message NFS { - // URI of the NFS server, e.g. an IP address. + // The IP address of the NFS. string server = 1; - // Remote source path exported from NFS, e.g., "/share". + // Remote source path exported from the NFS, e.g., "/share". string remote_path = 2; } -// Represents a Google Cloud Storage volume source config. +// Represents a Google Cloud Storage volume. message GCS { // Remote path, either a bucket name or a subdirectory of a bucket, e.g.: // bucket_name, bucket_name/subdirectory/ diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java index ece5bc20421c..6aa6f5654b5a 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicy.java @@ -3247,7 +3247,7 @@ public interface AttachedDiskOrBuilder * * *
-   * A new or an existing persistent disk or a local ssd attached to a VM
+   * A new or an existing persistent disk (PD) or a local ssd attached to a VM
    * instance.
    * 
* @@ -3698,7 +3698,7 @@ protected Builder newBuilderForType( * * *
-     * A new or an existing persistent disk or a local ssd attached to a VM
+     * A new or an existing persistent disk (PD) or a local ssd attached to a VM
      * instance.
      * 
* @@ -4462,7 +4462,7 @@ public interface AcceleratorOrBuilder * * *
-   * Accelerator describes Compute Engine accelerators to be attached to VMs.
+   * Accelerator describes Compute Engine accelerators to be attached to the VM.
    * 
* * Protobuf type {@code google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} @@ -4780,7 +4780,7 @@ protected Builder newBuilderForType( * * *
-     * Accelerator describes Compute Engine accelerators to be attached to VMs.
+     * Accelerator describes Compute Engine accelerators to be attached to the VM.
      * 
* * Protobuf type {@code google.cloud.batch.v1alpha.AllocationPolicy.Accelerator} @@ -5421,7 +5421,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5434,7 +5433,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5446,7 +5444,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5458,7 +5455,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5471,7 +5467,6 @@ public interface InstancePolicyOrBuilder * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5485,7 +5480,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder getAccelera * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5496,7 +5491,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder getAccelera * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5507,7 +5502,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder getAccelera * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5518,7 +5513,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder getAccelera * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5530,13 +5525,38 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder getAccelera * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; */ com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder getDisksOrBuilder( int index); + + /** + * + * + *
+     * If specified, VMs will be allocated only inside the matching reservation.
+     * 
+ * + * string reservation = 7; + * + * @return The reservation. + */ + java.lang.String getReservation(); + /** + * + * + *
+     * If specified, VMs will be allocated only inside the matching reservation.
+     * 
+ * + * string reservation = 7; + * + * @return The bytes for reservation. + */ + com.google.protobuf.ByteString getReservationBytes(); } /** * @@ -5565,6 +5585,7 @@ private InstancePolicy() { provisioningModel_ = 0; accelerators_ = java.util.Collections.emptyList(); disks_ = java.util.Collections.emptyList(); + reservation_ = ""; } @java.lang.Override @@ -5820,7 +5841,6 @@ public int getProvisioningModelValue() { * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5836,7 +5856,6 @@ public int getProvisioningModelValue() { * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5853,7 +5872,6 @@ public int getProvisioningModelValue() { * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5868,7 +5886,6 @@ public int getAcceleratorsCount() { * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5883,7 +5900,6 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator getAccelerato * *
      * The accelerators attached to each VM instance.
-     * Not yet implemented.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -5902,7 +5918,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator getAccelerato * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5917,7 +5933,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator getAccelerato * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5933,7 +5949,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator getAccelerato * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5947,7 +5963,7 @@ public int getDisksCount() { * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5961,7 +5977,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk getDisks(int * *
      * Non-boot disks to be attached for each VM created by this InstancePolicy.
-     * New disks will be deleted when the attached VM is deleted.
+     * New disks will be deleted when the VM is deleted.
      * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -5972,6 +5988,55 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDiskOrBuilder get return disks_.get(index); } + public static final int RESERVATION_FIELD_NUMBER = 7; + private volatile java.lang.Object reservation_; + /** + * + * + *
+     * If specified, VMs will be allocated only inside the matching reservation.
+     * 
+ * + * string reservation = 7; + * + * @return The reservation. + */ + @java.lang.Override + public java.lang.String getReservation() { + java.lang.Object ref = reservation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservation_ = s; + return s; + } + } + /** + * + * + *
+     * If specified, VMs will be allocated only inside the matching reservation.
+     * 
+ * + * string reservation = 7; + * + * @return The bytes for reservation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReservationBytes() { + java.lang.Object ref = reservation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reservation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -6008,6 +6073,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < disks_.size(); i++) { output.writeMessage(6, disks_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reservation_); + } getUnknownFields().writeTo(output); } @@ -6043,6 +6111,9 @@ public int getSerializedSize() { for (int i = 0; i < disks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, disks_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reservation_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6065,6 +6136,7 @@ public boolean equals(final java.lang.Object obj) { if (provisioningModel_ != other.provisioningModel_) return false; if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getDisksList().equals(other.getDisksList())) return false; + if (!getReservation().equals(other.getReservation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6094,6 +6166,8 @@ public int hashCode() { hash = (37 * hash) + DISKS_FIELD_NUMBER; hash = (53 * hash) + getDisksList().hashCode(); } + hash = (37 * hash) + RESERVATION_FIELD_NUMBER; + hash = (53 * hash) + getReservation().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -6258,6 +6332,8 @@ public Builder clear() { disksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + reservation_ = ""; + return this; } @@ -6313,6 +6389,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy buildParti } else { result.disks_ = disksBuilder_.build(); } + result.reservation_ = reservation_; onBuilt(); return result; } @@ -6442,6 +6519,10 @@ public Builder mergeFrom( } } } + if (!other.getReservation().isEmpty()) { + reservation_ = other.reservation_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6521,6 +6602,12 @@ public Builder mergeFrom( } break; } // case 50 + case 58: + { + reservation_ = input.readStringRequireUtf8(); + + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7100,7 +7187,6 @@ private void ensureAcceleratorsIsMutable() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7119,7 +7205,6 @@ private void ensureAcceleratorsIsMutable() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7137,7 +7222,6 @@ public int getAcceleratorsCount() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7156,7 +7240,6 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator getAccelerato * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7181,7 +7264,6 @@ public Builder setAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7204,7 +7286,6 @@ public Builder setAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7229,7 +7310,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7254,7 +7334,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7276,7 +7355,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7299,7 +7377,6 @@ public Builder addAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7322,7 +7399,6 @@ public Builder addAllAccelerators( * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7343,7 +7419,6 @@ public Builder clearAccelerators() { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7364,7 +7439,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7379,7 +7453,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7398,7 +7471,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7418,7 +7490,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7435,7 +7506,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7453,7 +7523,6 @@ public Builder removeAccelerators(int index) { * *
        * The accelerators attached to each VM instance.
-       * Not yet implemented.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.Accelerator accelerators = 5; @@ -7507,7 +7576,7 @@ private void ensureDisksIsMutable() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7525,7 +7594,7 @@ private void ensureDisksIsMutable() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7542,7 +7611,7 @@ public int getDisksCount() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7559,7 +7628,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk getDisks(int * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7583,7 +7652,7 @@ public Builder setDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7605,7 +7674,7 @@ public Builder setDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7628,7 +7697,7 @@ public Builder addDisks(com.google.cloud.batch.v1alpha.AllocationPolicy.Attached * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7652,7 +7721,7 @@ public Builder addDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7673,7 +7742,7 @@ public Builder addDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7695,7 +7764,7 @@ public Builder addDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7717,7 +7786,7 @@ public Builder addAllDisks( * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7737,7 +7806,7 @@ public Builder clearDisks() { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7757,7 +7826,7 @@ public Builder removeDisks(int index) { * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7771,7 +7840,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder getD * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7789,7 +7858,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder getD * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7808,7 +7877,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder getD * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7824,7 +7893,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder getD * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7841,7 +7910,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder addD * *
        * Non-boot disks to be attached for each VM created by this InstancePolicy.
-       * New disks will be deleted when the attached VM is deleted.
+       * New disks will be deleted when the VM is deleted.
        * 
* * repeated .google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk disks = 6; @@ -7868,6 +7937,112 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.AttachedDisk.Builder addD return disksBuilder_; } + private java.lang.Object reservation_ = ""; + /** + * + * + *
+       * If specified, VMs will be allocated only inside the matching reservation.
+       * 
+ * + * string reservation = 7; + * + * @return The reservation. + */ + public java.lang.String getReservation() { + java.lang.Object ref = reservation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reservation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * If specified, VMs will be allocated only inside the matching reservation.
+       * 
+ * + * string reservation = 7; + * + * @return The bytes for reservation. + */ + public com.google.protobuf.ByteString getReservationBytes() { + java.lang.Object ref = reservation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reservation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * If specified, VMs will be allocated only inside the matching reservation.
+       * 
+ * + * string reservation = 7; + * + * @param value The reservation to set. + * @return This builder for chaining. + */ + public Builder setReservation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + reservation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, VMs will be allocated only inside the matching reservation.
+       * 
+ * + * string reservation = 7; + * + * @return This builder for chaining. + */ + public Builder clearReservation() { + + reservation_ = getDefaultInstance().getReservation(); + onChanged(); + return this; + } + /** + * + * + *
+       * If specified, VMs will be allocated only inside the matching reservation.
+       * 
+ * + * string reservation = 7; + * + * @param value The bytes for reservation to set. + * @return This builder for chaining. + */ + public Builder setReservationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reservation_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11346,7 +11521,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.LocationPolicy getLocatio *
* * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=444 + * google/cloud/batch/v1alpha/job.proto;l=446 * @return Whether the instance field is set. */ @java.lang.Override @@ -11366,7 +11541,7 @@ public boolean hasInstance() { *
* * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=444 + * google/cloud/batch/v1alpha/job.proto;l=446 * @return The instance. */ @java.lang.Override @@ -11496,7 +11671,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicyOrTemplate * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -11513,7 +11688,7 @@ public com.google.protobuf.ProtocolStringList getInstanceTemplatesList() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -11530,7 +11705,7 @@ public int getInstanceTemplatesCount() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -11548,7 +11723,7 @@ public java.lang.String getInstanceTemplates(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -11579,7 +11754,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -11587,7 +11762,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @return A list containing the provisioningModels. */ @java.lang.Override @@ -11602,7 +11777,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -11610,7 +11785,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel convert * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @return The count of provisioningModels. */ @java.lang.Override @@ -11622,7 +11797,7 @@ public int getProvisioningModelsCount() { * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -11630,7 +11805,7 @@ public int getProvisioningModelsCount() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -11644,7 +11819,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -11652,7 +11827,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Override @@ -11664,7 +11839,7 @@ public java.util.List getProvisioningModelsValueList() { * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -11672,7 +11847,7 @@ public java.util.List getProvisioningModelsValueList() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -11696,7 +11871,7 @@ public int getProvisioningModelsValue(int index) { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return The serviceAccountEmail. */ @java.lang.Override @@ -11722,7 +11897,7 @@ public java.lang.String getServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return The bytes for serviceAccountEmail. */ @java.lang.Override @@ -12859,7 +13034,7 @@ public Builder clearLocation() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=444 + * google/cloud/batch/v1alpha/job.proto;l=446 * @return Whether the instance field is set. */ @java.lang.Deprecated @@ -12878,7 +13053,7 @@ public boolean hasInstance() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=444 + * google/cloud/batch/v1alpha/job.proto;l=446 * @return The instance. */ @java.lang.Deprecated @@ -13511,7 +13686,7 @@ private void ensureInstanceTemplatesIsMutable() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -13528,7 +13703,7 @@ public com.google.protobuf.ProtocolStringList getInstanceTemplatesList() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -13545,7 +13720,7 @@ public int getInstanceTemplatesCount() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -13563,7 +13738,7 @@ public java.lang.String getInstanceTemplates(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -13581,7 +13756,7 @@ public com.google.protobuf.ByteString getInstanceTemplatesBytes(int index) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index to set the value at. * @param value The instanceTemplates to set. * @return This builder for chaining. @@ -13606,7 +13781,7 @@ public Builder setInstanceTemplates(int index, java.lang.String value) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param value The instanceTemplates to add. * @return This builder for chaining. */ @@ -13630,7 +13805,7 @@ public Builder addInstanceTemplates(java.lang.String value) { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param values The instanceTemplates to add. * @return This builder for chaining. */ @@ -13651,7 +13826,7 @@ public Builder addAllInstanceTemplates(java.lang.Iterable valu * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13671,7 +13846,7 @@ public Builder clearInstanceTemplates() { * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param value The bytes of the instanceTemplates to add. * @return This builder for chaining. */ @@ -13700,7 +13875,7 @@ private void ensureProvisioningModelsIsMutable() { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13708,7 +13883,7 @@ private void ensureProvisioningModelsIsMutable() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @return A list containing the provisioningModels. */ @java.lang.Deprecated @@ -13722,7 +13897,7 @@ private void ensureProvisioningModelsIsMutable() { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13730,7 +13905,7 @@ private void ensureProvisioningModelsIsMutable() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @return The count of provisioningModels. */ @java.lang.Deprecated @@ -13741,7 +13916,7 @@ public int getProvisioningModelsCount() { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13749,7 +13924,7 @@ public int getProvisioningModelsCount() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -13762,7 +13937,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13770,7 +13945,7 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProv * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index to set the value at. * @param value The provisioningModels to set. * @return This builder for chaining. @@ -13790,7 +13965,7 @@ public Builder setProvisioningModels( * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13798,7 +13973,7 @@ public Builder setProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param value The provisioningModels to add. * @return This builder for chaining. */ @@ -13817,7 +13992,7 @@ public Builder addProvisioningModels( * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13825,7 +14000,7 @@ public Builder addProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param values The provisioningModels to add. * @return This builder for chaining. */ @@ -13845,7 +14020,7 @@ public Builder addAllProvisioningModels( * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13853,7 +14028,7 @@ public Builder addAllProvisioningModels( * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13867,7 +14042,7 @@ public Builder clearProvisioningModels() { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13875,7 +14050,7 @@ public Builder clearProvisioningModels() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Deprecated @@ -13886,7 +14061,7 @@ public java.util.List getProvisioningModelsValueList() { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13894,7 +14069,7 @@ public java.util.List getProvisioningModelsValueList() { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -13906,7 +14081,7 @@ public int getProvisioningModelsValue(int index) { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13914,7 +14089,7 @@ public int getProvisioningModelsValue(int index) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index to set the value at. * @param value The enum numeric value on the wire for provisioningModels to set. * @return This builder for chaining. @@ -13930,7 +14105,7 @@ public Builder setProvisioningModelsValue(int index, int value) { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13938,7 +14113,7 @@ public Builder setProvisioningModelsValue(int index, int value) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param value The enum numeric value on the wire for provisioningModels to add. * @return This builder for chaining. */ @@ -13953,7 +14128,7 @@ public Builder addProvisioningModelsValue(int value) { * * *
-     * Deprecated: please use instances[i].policy.provisioning_model instead.
+     * Deprecated: please use instances[0].policy.provisioning_model instead.
      * 
* * @@ -13961,7 +14136,7 @@ public Builder addProvisioningModelsValue(int value) { * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=454 + * See google/cloud/batch/v1alpha/job.proto;l=456 * @param values The enum numeric values on the wire for provisioningModels to add. * @return This builder for chaining. */ @@ -13986,7 +14161,7 @@ public Builder addAllProvisioningModelsValue(java.lang.Iterablestring service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return The serviceAccountEmail. */ @java.lang.Deprecated @@ -14011,7 +14186,7 @@ public java.lang.String getServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return The bytes for serviceAccountEmail. */ @java.lang.Deprecated @@ -14036,7 +14211,7 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ @@ -14060,7 +14235,7 @@ public Builder setServiceAccountEmail(java.lang.String value) { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14080,7 +14255,7 @@ public Builder clearServiceAccountEmail() { * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java index 752ff2e6092a..fa61e65a0102 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java @@ -70,7 +70,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=444 + * google/cloud/batch/v1alpha/job.proto;l=446 * @return Whether the instance field is set. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=444 + * google/cloud/batch/v1alpha/job.proto;l=446 * @return The instance. */ @java.lang.Deprecated @@ -187,7 +187,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return A list containing the instanceTemplates. */ @java.lang.Deprecated @@ -202,7 +202,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @return The count of instanceTemplates. */ @java.lang.Deprecated @@ -217,7 +217,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index of the element to return. * @return The instanceTemplates at the given index. */ @@ -233,7 +233,7 @@ public interface AllocationPolicyOrBuilder * repeated string instance_templates = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=451 + * google/cloud/batch/v1alpha/job.proto;l=453 * @param index The index of the value to return. * @return The bytes of the instanceTemplates at the given index. */ @@ -244,7 +244,7 @@ public interface AllocationPolicyOrBuilder * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -252,7 +252,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @return A list containing the provisioningModels. */ @java.lang.Deprecated @@ -262,7 +262,7 @@ public interface AllocationPolicyOrBuilder * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -270,7 +270,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @return The count of provisioningModels. */ @java.lang.Deprecated @@ -279,7 +279,7 @@ public interface AllocationPolicyOrBuilder * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -287,7 +287,7 @@ public interface AllocationPolicyOrBuilder * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index of the element to return. * @return The provisioningModels at the given index. */ @@ -298,7 +298,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -306,7 +306,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @return A list containing the enum numeric values on the wire for provisioningModels. */ @java.lang.Deprecated @@ -315,7 +315,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * *
-   * Deprecated: please use instances[i].policy.provisioning_model instead.
+   * Deprecated: please use instances[0].policy.provisioning_model instead.
    * 
* * @@ -323,7 +323,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=454 + * google/cloud/batch/v1alpha/job.proto;l=456 * @param index The index of the value to return. * @return The enum numeric value on the wire of provisioningModels at the given index. */ @@ -340,7 +340,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return The serviceAccountEmail. */ @java.lang.Deprecated @@ -355,7 +355,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin * string service_account_email = 5 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated. - * See google/cloud/batch/v1alpha/job.proto;l=457 + * See google/cloud/batch/v1alpha/job.proto;l=459 * @return The bytes for serviceAccountEmail. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequest.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequest.java index 6aaeacb36d45..e01988d7db6c 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequest.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequest.java @@ -131,8 +131,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
@@ -160,8 +161,9 @@ public java.lang.String getJobId() {
    *
    * 
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
@@ -835,8 +837,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -863,8 +866,9 @@ public java.lang.String getJobId() {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -891,8 +895,9 @@ public com.google.protobuf.ByteString getJobIdBytes() {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -918,8 +923,9 @@ public Builder setJobId(java.lang.String value) {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
@@ -941,8 +947,9 @@ public Builder clearJobId() {
      *
      * 
      * ID used to uniquely identify the Job within its parent scope.
-     * This field should contain at most 63 characters.
-     * Only alphanumeric characters or '-' are accepted.
+     * This field should contain at most 63 characters and must start with
+     * lowercase characters.
+     * Only lowercase characters, numbers and '-' are accepted.
      * The '-' character cannot be the first or the last one.
      * A system generated ID will be used if the field is not set.
      * The job.name field in the request will be ignored and the created resource
diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequestOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequestOrBuilder.java
index 8a31549770a2..d3ccae29d9e5 100644
--- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequestOrBuilder.java
+++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/CreateJobRequestOrBuilder.java
@@ -59,8 +59,9 @@ public interface CreateJobRequestOrBuilder
    *
    * 
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
@@ -77,8 +78,9 @@ public interface CreateJobRequestOrBuilder
    *
    * 
    * ID used to uniquely identify the Job within its parent scope.
-   * This field should contain at most 63 characters.
-   * Only alphanumeric characters or '-' are accepted.
+   * This field should contain at most 63 characters and must start with
+   * lowercase characters.
+   * Only lowercase characters, numbers and '-' are accepted.
    * The '-' character cannot be the first or the last one.
    * A system generated ID will be used if the field is not set.
    * The job.name field in the request will be ignored and the created resource
diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCS.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCS.java
index d86da0e427e9..f99ab9122368 100644
--- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCS.java
+++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/GCS.java
@@ -22,7 +22,7 @@
  *
  *
  * 
- * Represents a Google Cloud Storage volume source config.
+ * Represents a Google Cloud Storage volume.
  * 
* * Protobuf type {@code google.cloud.batch.v1alpha.GCS} @@ -279,7 +279,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents a Google Cloud Storage volume source config.
+   * Represents a Google Cloud Storage volume.
    * 
* * Protobuf type {@code google.cloud.batch.v1alpha.GCS} diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java index b926537e65b1..f92b95e8c1dd 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java @@ -208,7 +208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tus.State\022D\n\016new_task_state\030\003 \001(\0162,.goog" + "le.cloud.batch.v1alpha.TaskStatus.State\"" + "K\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\025\n\021JOB_STA" - + "TE_CHANGED\020\001\022\026\n\022TASK_STATE_CHANGED\020\002\"\222\017\n" + + "TE_CHANGED\020\001\022\026\n\022TASK_STATE_CHANGED\020\002\"\247\017\n" + "\020AllocationPolicy\022M\n\010location\030\001 \001(\0132;.go" + "ogle.cloud.batch.v1alpha.AllocationPolic" + "y.LocationPolicy\022Q\n\010instance\030\002 \001(\0132;.goo" @@ -235,7 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".DiskH\000\022\027\n\rexisting_disk\030\002 \001(\tH\000\022\023\n\013devi" + "ce_name\030\003 \001(\tB\n\n\010attached\032K\n\013Accelerator" + "\022\014\n\004type\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\022\037\n\023install" - + "_gpu_drivers\030\003 \001(\010B\002\030\001\032\331\002\n\016InstancePolic" + + "_gpu_drivers\030\003 \001(\010B\002\030\001\032\356\002\n\016InstancePolic" + "y\022!\n\025allowed_machine_types\030\001 \003(\tB\002\030\001\022\024\n\014" + "machine_type\030\002 \001(\t\022\030\n\020min_cpu_platform\030\003" + " \001(\t\022Z\n\022provisioning_model\030\004 \001(\0162>.googl" @@ -244,45 +244,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.batch.v1alpha.AllocationPo" + "licy.Accelerator\022H\n\005disks\030\006 \003(\01329.google" + ".cloud.batch.v1alpha.AllocationPolicy.At" - + "tachedDisk\032\266\001\n\030InstancePolicyOrTemplate\022" - + "M\n\006policy\030\001 \001(\0132;.google.cloud.batch.v1a" - + "lpha.AllocationPolicy.InstancePolicyH\000\022\033" - + "\n\021instance_template\030\002 \001(\tH\000\022\033\n\023install_g" - + "pu_drivers\030\003 \001(\010B\021\n\017policy_template\032W\n\020N" - + "etworkInterface\022\017\n\007network\030\001 \001(\t\022\022\n\nsubn" - + "etwork\030\002 \001(\t\022\036\n\026no_external_ip_address\030\003" - + " \001(\010\032j\n\rNetworkPolicy\022Y\n\022network_interfa" - + "ces\030\001 \003(\0132=.google.cloud.batch.v1alpha.A" - + "llocationPolicy.NetworkInterface\032-\n\013Labe" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "`\n\021ProvisioningModel\022\"\n\036PROVISIONING_MOD" - + "EL_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\010\n\004SPOT\020\002" - + "\022\017\n\013PREEMPTIBLE\020\003\"\351\005\n\tTaskGroup\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022<\n\ttask_spec\030\003 \001(\0132$.google.c" - + "loud.batch.v1alpha.TaskSpecB\003\340A\002\022\022\n\ntask" - + "_count\030\004 \001(\003\022\023\n\013parallelism\030\005 \001(\003\022Q\n\021sch" - + "eduling_policy\030\006 \001(\01626.google.cloud.batc" - + "h.v1alpha.TaskGroup.SchedulingPolicy\022G\n\021" - + "allocation_policy\030\007 \001(\0132,.google.cloud.b" - + "atch.v1alpha.AllocationPolicy\022A\n\006labels\030" - + "\010 \003(\01321.google.cloud.batch.v1alpha.TaskG" - + "roup.LabelsEntry\022B\n\021task_environments\030\t " - + "\003(\0132\'.google.cloud.batch.v1alpha.Environ" - + "ment\022\033\n\023task_count_per_node\030\n \001(\003\022\032\n\022req" - + "uire_hosts_file\030\013 \001(\010\022\026\n\016permissive_ssh\030" - + "\014 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"N\n\020SchedulingPolicy\022!\n\035SCHE" - + "DULING_POLICY_UNSPECIFIED\020\000\022\027\n\023AS_SOON_A" - + "S_POSSIBLE\020\001:o\352Al\n\036batch.googleapis.com/" - + "TaskGroup\022Jprojects/{project}/locations/" - + "{location}/jobs/{job}/taskGroups/{task_g" - + "roup}\"3\n\016ServiceAccount\022\r\n\005email\030\001 \001(\t\022\022" - + "\n\006scopes\030\002 \003(\tB\002\030\001B\315\001\n\036com.google.cloud." - + "batch.v1alphaB\010JobProtoP\001Z?google.golang" - + ".org/genproto/googleapis/cloud/batch/v1a" - + "lpha;batch\242\002\003GCB\252\002\032Google.Cloud.Batch.V1" - + "Alpha\312\002\032Google\\Cloud\\Batch\\V1alpha\352\002\035Goo" - + "gle::Cloud::Batch::V1alphab\006proto3" + + "tachedDisk\022\023\n\013reservation\030\007 \001(\t\032\266\001\n\030Inst" + + "ancePolicyOrTemplate\022M\n\006policy\030\001 \001(\0132;.g" + + "oogle.cloud.batch.v1alpha.AllocationPoli" + + "cy.InstancePolicyH\000\022\033\n\021instance_template" + + "\030\002 \001(\tH\000\022\033\n\023install_gpu_drivers\030\003 \001(\010B\021\n" + + "\017policy_template\032W\n\020NetworkInterface\022\017\n\007" + + "network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\036\n\026no_" + + "external_ip_address\030\003 \001(\010\032j\n\rNetworkPoli" + + "cy\022Y\n\022network_interfaces\030\001 \003(\0132=.google." + + "cloud.batch.v1alpha.AllocationPolicy.Net" + + "workInterface\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`\n\021ProvisioningMode" + + "l\022\"\n\036PROVISIONING_MODEL_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\010\n\004SPOT\020\002\022\017\n\013PREEMPTIBLE\020\003\"\351" + + "\005\n\tTaskGroup\022\021\n\004name\030\001 \001(\tB\003\340A\003\022<\n\ttask_" + + "spec\030\003 \001(\0132$.google.cloud.batch.v1alpha." + + "TaskSpecB\003\340A\002\022\022\n\ntask_count\030\004 \001(\003\022\023\n\013par" + + "allelism\030\005 \001(\003\022Q\n\021scheduling_policy\030\006 \001(" + + "\01626.google.cloud.batch.v1alpha.TaskGroup" + + ".SchedulingPolicy\022G\n\021allocation_policy\030\007" + + " \001(\0132,.google.cloud.batch.v1alpha.Alloca" + + "tionPolicy\022A\n\006labels\030\010 \003(\01321.google.clou" + + "d.batch.v1alpha.TaskGroup.LabelsEntry\022B\n" + + "\021task_environments\030\t \003(\0132\'.google.cloud." + + "batch.v1alpha.Environment\022\033\n\023task_count_" + + "per_node\030\n \001(\003\022\032\n\022require_hosts_file\030\013 \001" + + "(\010\022\026\n\016permissive_ssh\030\014 \001(\010\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n\020Sch" + + "edulingPolicy\022!\n\035SCHEDULING_POLICY_UNSPE" + + "CIFIED\020\000\022\027\n\023AS_SOON_AS_POSSIBLE\020\001:o\352Al\n\036" + + "batch.googleapis.com/TaskGroup\022Jprojects" + + "/{project}/locations/{location}/jobs/{jo" + + "b}/taskGroups/{task_group}\"3\n\016ServiceAcc" + + "ount\022\r\n\005email\030\001 \001(\t\022\022\n\006scopes\030\002 \003(\tB\002\030\001B" + + "\315\001\n\036com.google.cloud.batch.v1alphaB\010JobP" + + "rotoP\001Z?google.golang.org/genproto/googl" + + "eapis/cloud/batch/v1alpha;batch\242\002\003GCB\252\002\032" + + "Google.Cloud.Batch.V1Alpha\312\002\032Google\\Clou" + + "d\\Batch\\V1alpha\352\002\035Google::Cloud::Batch::" + + "V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -477,6 +478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProvisioningModel", "Accelerators", "Disks", + "Reservation", }); internal_static_google_cloud_batch_v1alpha_AllocationPolicy_InstancePolicyOrTemplate_descriptor = internal_static_google_cloud_batch_v1alpha_AllocationPolicy_descriptor diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFS.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFS.java index 656a35dc85fe..4d2b7244af91 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFS.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFS.java @@ -22,7 +22,7 @@ * * *
- * Represents an NFS server and remote path: <server>:<remote_path>
+ * Represents an NFS volume.
  * 
* * Protobuf type {@code google.cloud.batch.v1alpha.NFS} @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -97,7 +97,7 @@ public java.lang.String getServer() { * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -123,7 +123,7 @@ public com.google.protobuf.ByteString getServerBytes() { * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; @@ -146,7 +146,7 @@ public java.lang.String getRemotePath() { * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; @@ -336,7 +336,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents an NFS server and remote path: <server>:<remote_path>
+   * Represents an NFS volume.
    * 
* * Protobuf type {@code google.cloud.batch.v1alpha.NFS} @@ -519,7 +519,7 @@ public Builder mergeFrom( * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -541,7 +541,7 @@ public java.lang.String getServer() { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -563,7 +563,7 @@ public com.google.protobuf.ByteString getServerBytes() { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -584,7 +584,7 @@ public Builder setServer(java.lang.String value) { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -601,7 +601,7 @@ public Builder clearServer() { * * *
-     * URI of the NFS server, e.g. an IP address.
+     * The IP address of the NFS.
      * 
* * string server = 1; @@ -625,7 +625,7 @@ public Builder setServerBytes(com.google.protobuf.ByteString value) { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -647,7 +647,7 @@ public java.lang.String getRemotePath() { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -669,7 +669,7 @@ public com.google.protobuf.ByteString getRemotePathBytes() { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -690,7 +690,7 @@ public Builder setRemotePath(java.lang.String value) { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; @@ -707,7 +707,7 @@ public Builder clearRemotePath() { * * *
-     * Remote source path exported from NFS, e.g., "/share".
+     * Remote source path exported from the NFS, e.g., "/share".
      * 
* * string remote_path = 2; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFSOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFSOrBuilder.java index 882376c1a4c3..6e2600b72196 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFSOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/NFSOrBuilder.java @@ -27,7 +27,7 @@ public interface NFSOrBuilder * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -39,7 +39,7 @@ public interface NFSOrBuilder * * *
-   * URI of the NFS server, e.g. an IP address.
+   * The IP address of the NFS.
    * 
* * string server = 1; @@ -52,7 +52,7 @@ public interface NFSOrBuilder * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; @@ -64,7 +64,7 @@ public interface NFSOrBuilder * * *
-   * Remote source path exported from NFS, e.g., "/share".
+   * Remote source path exported from the NFS, e.g., "/share".
    * 
* * string remote_path = 2; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java index 29b41ae3671b..201833820526 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PD.java @@ -22,7 +22,7 @@ * * *
- * Represents a GCP persistent disk
+ * Deprecated: please use device_name instead.
  * 
* * Protobuf type {@code google.cloud.batch.v1alpha.PD} @@ -181,7 +181,7 @@ public com.google.protobuf.ByteString getDeviceBytes() { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=81 + * google/cloud/batch/v1alpha/volume.proto;l=85 * @return The existing. */ @java.lang.Override @@ -369,7 +369,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Represents a GCP persistent disk
+   * Deprecated: please use device_name instead.
    * 
* * Protobuf type {@code google.cloud.batch.v1alpha.PD} @@ -785,7 +785,7 @@ public Builder setDeviceBytes(com.google.protobuf.ByteString value) { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=81 + * google/cloud/batch/v1alpha/volume.proto;l=85 * @return The existing. */ @java.lang.Override @@ -806,7 +806,7 @@ public boolean getExisting() { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=81 + * google/cloud/batch/v1alpha/volume.proto;l=85 * @param value The existing to set. * @return This builder for chaining. */ @@ -830,7 +830,7 @@ public Builder setExisting(boolean value) { * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=81 + * google/cloud/batch/v1alpha/volume.proto;l=85 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java index ec39c8158e9b..a64e65ac6b26 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/PDOrBuilder.java @@ -86,7 +86,7 @@ public interface PDOrBuilder * bool existing = 3 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.PD.existing is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=81 + * google/cloud/batch/v1alpha/volume.proto;l=85 * @return The existing. */ @java.lang.Deprecated diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Runnable.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Runnable.java index 95f13f97984b..bbacb2de352e 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Runnable.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Runnable.java @@ -297,7 +297,7 @@ public interface ContainerOrBuilder * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -311,7 +311,7 @@ public interface ContainerOrBuilder * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -326,7 +326,7 @@ public interface ContainerOrBuilder * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -340,7 +340,7 @@ public interface ContainerOrBuilder * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -719,7 +719,7 @@ public boolean getBlockExternalNetwork() { * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -744,7 +744,7 @@ public java.lang.String getUsername() { * *
      * Optional username for logging in to a docker registry. If username
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * username from the Secret Manager.
      * 
* @@ -772,7 +772,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -797,7 +797,7 @@ public java.lang.String getPassword() { * *
      * Optional password for logging in to a docker registry. If password
-     * matches `projects/*/secrets/*/versions/*` then Batch will read the
+     * matches "projects/*/secrets/*/versions/*" then Batch will read the
      * password from the Secret Manager;
      * 
* @@ -2103,7 +2103,7 @@ public Builder clearBlockExternalNetwork() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2127,7 +2127,7 @@ public java.lang.String getUsername() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2151,7 +2151,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2174,7 +2174,7 @@ public Builder setUsername(java.lang.String value) { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2193,7 +2193,7 @@ public Builder clearUsername() { * *
        * Optional username for logging in to a docker registry. If username
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * username from the Secret Manager.
        * 
* @@ -2219,7 +2219,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2243,7 +2243,7 @@ public java.lang.String getPassword() { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2267,7 +2267,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2290,7 +2290,7 @@ public Builder setPassword(java.lang.String value) { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* @@ -2309,7 +2309,7 @@ public Builder clearPassword() { * *
        * Optional password for logging in to a docker registry. If password
-       * matches `projects/*/secrets/*/versions/*` then Batch will read the
+       * matches "projects/*/secrets/*/versions/*" then Batch will read the
        * password from the Secret Manager;
        * 
* diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccount.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccount.java index 9c3e096c54e6..b67796b131d8 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccount.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccount.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getEmailBytes() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return A list containing the scopes. */ @java.lang.Deprecated @@ -154,7 +154,7 @@ public com.google.protobuf.ProtocolStringList getScopesList() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return The count of scopes. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ public int getScopesCount() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -191,7 +191,7 @@ public java.lang.String getScopes(int index) { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ @@ -713,7 +713,7 @@ private void ensureScopesIsMutable() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return A list containing the scopes. */ @java.lang.Deprecated @@ -731,7 +731,7 @@ public com.google.protobuf.ProtocolStringList getScopesList() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return The count of scopes. */ @java.lang.Deprecated @@ -749,7 +749,7 @@ public int getScopesCount() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -768,7 +768,7 @@ public java.lang.String getScopes(int index) { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ @@ -787,7 +787,7 @@ public com.google.protobuf.ByteString getScopesBytes(int index) { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index to set the value at. * @param value The scopes to set. * @return This builder for chaining. @@ -813,7 +813,7 @@ public Builder setScopes(int index, java.lang.String value) { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param value The scopes to add. * @return This builder for chaining. */ @@ -838,7 +838,7 @@ public Builder addScopes(java.lang.String value) { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param values The scopes to add. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder addAllScopes(java.lang.Iterable values) { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return This builder for chaining. */ @java.lang.Deprecated @@ -881,7 +881,7 @@ public Builder clearScopes() { * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param value The bytes of the scopes to add. * @return This builder for chaining. */ diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccountOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccountOrBuilder.java index c54002345dfc..394ad7e49623 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccountOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/ServiceAccountOrBuilder.java @@ -65,7 +65,7 @@ public interface ServiceAccountOrBuilder * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return A list containing the scopes. */ @java.lang.Deprecated @@ -81,7 +81,7 @@ public interface ServiceAccountOrBuilder * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @return The count of scopes. */ @java.lang.Deprecated @@ -97,7 +97,7 @@ public interface ServiceAccountOrBuilder * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index of the element to return. * @return The scopes at the given index. */ @@ -114,7 +114,7 @@ public interface ServiceAccountOrBuilder * repeated string scopes = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See - * google/cloud/batch/v1alpha/job.proto;l=562 + * google/cloud/batch/v1alpha/job.proto;l=564 * @param index The index of the value to return. * @return The bytes of the scopes at the given index. */ diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java index a0eaa9d98b8b..21535a6d3caf 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/Volume.java @@ -22,9 +22,7 @@ * * *
- * Volume and mount parameters to be associated with a TaskSpec. A TaskSpec
- * might describe zero, one, or multiple volumes to be mounted as part of the
- * task.
+ * Volume describes a volume and parameters for it to be mounted to a VM.
  * 
* * Protobuf type {@code google.cloud.batch.v1alpha.Volume} @@ -129,7 +127,8 @@ public SourceCase getSourceCase() { * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -144,7 +143,8 @@ public boolean hasNfs() { * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -162,7 +162,8 @@ public com.google.cloud.batch.v1alpha.NFS getNfs() { * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -180,13 +181,13 @@ public com.google.cloud.batch.v1alpha.NFSOrBuilder getNfsOrBuilder() { * * *
-   * A persistent disk source for the volume.
+   * Deprecated: please use device_name instead.
    * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Volume.pd is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=37 + * google/cloud/batch/v1alpha/volume.proto;l=36 * @return Whether the pd field is set. */ @java.lang.Override @@ -198,13 +199,13 @@ public boolean hasPd() { * * *
-   * A persistent disk source for the volume.
+   * Deprecated: please use device_name instead.
    * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Volume.pd is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=37 + * google/cloud/batch/v1alpha/volume.proto;l=36 * @return The pd. */ @java.lang.Override @@ -219,7 +220,7 @@ public com.google.cloud.batch.v1alpha.PD getPd() { * * *
-   * A persistent disk source for the volume.
+   * Deprecated: please use device_name instead.
    * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -238,7 +239,7 @@ public com.google.cloud.batch.v1alpha.PDOrBuilder getPdOrBuilder() { * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -253,7 +254,7 @@ public boolean hasGcs() { * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -271,7 +272,7 @@ public com.google.cloud.batch.v1alpha.GCS getGcs() { * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -289,7 +290,11 @@ public com.google.cloud.batch.v1alpha.GCSOrBuilder getGcsOrBuilder() { * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -303,7 +308,11 @@ public boolean hasDeviceName() { * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -330,7 +339,11 @@ public java.lang.String getDeviceName() { * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -360,7 +373,7 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -383,7 +396,7 @@ public java.lang.String getMountPath() { * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -409,14 +422,15 @@ public com.google.protobuf.ByteString getMountPathBytes() { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -430,14 +444,15 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -451,14 +466,15 @@ public int getMountOptionsCount() { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -473,14 +489,15 @@ public java.lang.String getMountOptions(int index) { * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -736,9 +753,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Volume and mount parameters to be associated with a TaskSpec. A TaskSpec
-   * might describe zero, one, or multiple volumes to be mounted as part of the
-   * task.
+   * Volume describes a volume and parameters for it to be mounted to a VM.
    * 
* * Protobuf type {@code google.cloud.batch.v1alpha.Volume} @@ -1043,7 +1058,8 @@ public Builder clearSource() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1058,7 +1074,8 @@ public boolean hasNfs() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1083,7 +1100,8 @@ public com.google.cloud.batch.v1alpha.NFS getNfs() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1105,7 +1123,8 @@ public Builder setNfs(com.google.cloud.batch.v1alpha.NFS value) { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1124,7 +1143,8 @@ public Builder setNfs(com.google.cloud.batch.v1alpha.NFS.Builder builderForValue * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1160,7 +1180,8 @@ public Builder mergeNfs(com.google.cloud.batch.v1alpha.NFS value) { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1185,7 +1206,8 @@ public Builder clearNfs() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1197,7 +1219,8 @@ public com.google.cloud.batch.v1alpha.NFS.Builder getNfsBuilder() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1217,7 +1240,8 @@ public com.google.cloud.batch.v1alpha.NFSOrBuilder getNfsOrBuilder() { * * *
-     * An NFS source for the volume (could be a Filestore, for example).
+     * A Network File System (NFS) volume. For example, a
+     * Filestore file share.
      * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -1254,13 +1278,13 @@ public com.google.cloud.batch.v1alpha.NFSOrBuilder getNfsOrBuilder() { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Volume.pd is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=37 + * google/cloud/batch/v1alpha/volume.proto;l=36 * @return Whether the pd field is set. */ @java.lang.Override @@ -1272,13 +1296,13 @@ public boolean hasPd() { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Volume.pd is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=37 + * google/cloud/batch/v1alpha/volume.proto;l=36 * @return The pd. */ @java.lang.Override @@ -1300,7 +1324,7 @@ public com.google.cloud.batch.v1alpha.PD getPd() { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1323,7 +1347,7 @@ public Builder setPd(com.google.cloud.batch.v1alpha.PD value) { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1343,7 +1367,7 @@ public Builder setPd(com.google.cloud.batch.v1alpha.PD.Builder builderForValue) * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1379,7 +1403,7 @@ public Builder mergePd(com.google.cloud.batch.v1alpha.PD value) { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1405,7 +1429,7 @@ public Builder clearPd() { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1418,7 +1442,7 @@ public com.google.cloud.batch.v1alpha.PD.Builder getPdBuilder() { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1439,7 +1463,7 @@ public com.google.cloud.batch.v1alpha.PDOrBuilder getPdOrBuilder() { * * *
-     * A persistent disk source for the volume.
+     * Deprecated: please use device_name instead.
      * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -1476,7 +1500,7 @@ public com.google.cloud.batch.v1alpha.PDOrBuilder getPdOrBuilder() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1491,7 +1515,7 @@ public boolean hasGcs() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1516,7 +1540,7 @@ public com.google.cloud.batch.v1alpha.GCS getGcs() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1538,7 +1562,7 @@ public Builder setGcs(com.google.cloud.batch.v1alpha.GCS value) { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1557,7 +1581,7 @@ public Builder setGcs(com.google.cloud.batch.v1alpha.GCS.Builder builderForValue * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1593,7 +1617,7 @@ public Builder mergeGcs(com.google.cloud.batch.v1alpha.GCS value) { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1618,7 +1642,7 @@ public Builder clearGcs() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1630,7 +1654,7 @@ public com.google.cloud.batch.v1alpha.GCS.Builder getGcsBuilder() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1650,7 +1674,7 @@ public com.google.cloud.batch.v1alpha.GCSOrBuilder getGcsOrBuilder() { * * *
-     * A Google Cloud Storage source for the volume.
+     * A Google Cloud Storage (GCS) volume.
      * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -1682,7 +1706,11 @@ public com.google.cloud.batch.v1alpha.GCSOrBuilder getGcsOrBuilder() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1697,7 +1725,11 @@ public boolean hasDeviceName() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1725,7 +1757,11 @@ public java.lang.String getDeviceName() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1753,7 +1789,11 @@ public com.google.protobuf.ByteString getDeviceNameBytes() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1774,7 +1814,11 @@ public Builder setDeviceName(java.lang.String value) { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1793,7 +1837,11 @@ public Builder clearDeviceName() { * * *
-     * Device name of an attached disk
+     * Device name of an attached disk volume, which should align with a
+     * device_name specified by
+     * job.allocation_policy.instances[0].policy.disks[i].device_name or
+     * defined by the given instance template in
+     * job.allocation_policy.instances[0].instance_template.
      * 
* * string device_name = 6; @@ -1817,7 +1865,7 @@ public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1839,7 +1887,7 @@ public java.lang.String getMountPath() { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1861,7 +1909,7 @@ public com.google.protobuf.ByteString getMountPathBytes() { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1882,7 +1930,7 @@ public Builder setMountPath(java.lang.String value) { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1899,7 +1947,7 @@ public Builder clearMountPath() { * * *
-     * Mount path for the volume, e.g. /mnt/share
+     * The mount path for the volume, e.g. /mnt/disks/share.
      * 
* * string mount_path = 4; @@ -1931,14 +1979,15 @@ private void ensureMountOptionsIsMutable() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1952,14 +2001,15 @@ public com.google.protobuf.ProtocolStringList getMountOptionsList() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1973,14 +2023,15 @@ public int getMountOptionsCount() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -1995,14 +2046,15 @@ public java.lang.String getMountOptions(int index) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -2017,14 +2069,15 @@ public com.google.protobuf.ByteString getMountOptionsBytes(int index) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -2046,14 +2099,15 @@ public Builder setMountOptions(int index, java.lang.String value) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -2074,14 +2128,15 @@ public Builder addMountOptions(java.lang.String value) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -2099,14 +2154,15 @@ public Builder addAllMountOptions(java.lang.Iterable values) { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; @@ -2123,14 +2179,15 @@ public Builder clearMountOptions() { * * *
-     * Mount options
-     * For Google Cloud Storage, mount options are the global options supported by
-     * gcsfuse tool. Batch will use them to mount the volume with the following
-     * command:
-     * "gcsfuse [global options] bucket mountpoint".
-     * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-     * use Fstab to mount such volumes.
-     * https://help.ubuntu.com/community/Fstab
+     * For Google Cloud Storage (GCS), mount options are the options supported by
+     * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+     * For existing persistent disks, mount options provided by the
+     * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+     * writing are supported. This is due to restrictions of multi-writer mode
+     * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+     * For other attached disks and Network File System (NFS), mount options are
+     * these supported by the mount command
+     * (https://man7.org/linux/man-pages/man8/mount.8.html).
      * 
* * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java index 5c93548326e7..e2c259ce1961 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/VolumeOrBuilder.java @@ -27,7 +27,8 @@ public interface VolumeOrBuilder * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -39,7 +40,8 @@ public interface VolumeOrBuilder * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -51,7 +53,8 @@ public interface VolumeOrBuilder * * *
-   * An NFS source for the volume (could be a Filestore, for example).
+   * A Network File System (NFS) volume. For example, a
+   * Filestore file share.
    * 
* * .google.cloud.batch.v1alpha.NFS nfs = 1; @@ -62,13 +65,13 @@ public interface VolumeOrBuilder * * *
-   * A persistent disk source for the volume.
+   * Deprecated: please use device_name instead.
    * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Volume.pd is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=37 + * google/cloud/batch/v1alpha/volume.proto;l=36 * @return Whether the pd field is set. */ @java.lang.Deprecated @@ -77,13 +80,13 @@ public interface VolumeOrBuilder * * *
-   * A persistent disk source for the volume.
+   * Deprecated: please use device_name instead.
    * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; * * @deprecated google.cloud.batch.v1alpha.Volume.pd is deprecated. See - * google/cloud/batch/v1alpha/volume.proto;l=37 + * google/cloud/batch/v1alpha/volume.proto;l=36 * @return The pd. */ @java.lang.Deprecated @@ -92,7 +95,7 @@ public interface VolumeOrBuilder * * *
-   * A persistent disk source for the volume.
+   * Deprecated: please use device_name instead.
    * 
* * .google.cloud.batch.v1alpha.PD pd = 2 [deprecated = true]; @@ -104,7 +107,7 @@ public interface VolumeOrBuilder * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -116,7 +119,7 @@ public interface VolumeOrBuilder * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -128,7 +131,7 @@ public interface VolumeOrBuilder * * *
-   * A Google Cloud Storage source for the volume.
+   * A Google Cloud Storage (GCS) volume.
    * 
* * .google.cloud.batch.v1alpha.GCS gcs = 3; @@ -139,7 +142,11 @@ public interface VolumeOrBuilder * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -151,7 +158,11 @@ public interface VolumeOrBuilder * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -163,7 +174,11 @@ public interface VolumeOrBuilder * * *
-   * Device name of an attached disk
+   * Device name of an attached disk volume, which should align with a
+   * device_name specified by
+   * job.allocation_policy.instances[0].policy.disks[i].device_name or
+   * defined by the given instance template in
+   * job.allocation_policy.instances[0].instance_template.
    * 
* * string device_name = 6; @@ -176,7 +191,7 @@ public interface VolumeOrBuilder * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -188,7 +203,7 @@ public interface VolumeOrBuilder * * *
-   * Mount path for the volume, e.g. /mnt/share
+   * The mount path for the volume, e.g. /mnt/disks/share.
    * 
* * string mount_path = 4; @@ -201,14 +216,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -220,14 +236,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -239,14 +256,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; @@ -259,14 +277,15 @@ public interface VolumeOrBuilder * * *
-   * Mount options
-   * For Google Cloud Storage, mount options are the global options supported by
-   * gcsfuse tool. Batch will use them to mount the volume with the following
-   * command:
-   * "gcsfuse [global options] bucket mountpoint".
-   * For PD, NFS, mount options are these supported by /etc/fstab. Batch will
-   * use Fstab to mount such volumes.
-   * https://help.ubuntu.com/community/Fstab
+   * For Google Cloud Storage (GCS), mount options are the options supported by
+   * the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse).
+   * For existing persistent disks, mount options provided by the
+   * mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except
+   * writing are supported. This is due to restrictions of multi-writer mode
+   * (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms).
+   * For other attached disks and Network File System (NFS), mount options are
+   * these supported by the mount command
+   * (https://man7.org/linux/man-pages/man8/mount.8.html).
    * 
* * repeated string mount_options = 5; diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto index 97b3171ca424..cc6dd16a5362 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/batch.proto @@ -107,8 +107,9 @@ message CreateJobRequest { ]; // ID used to uniquely identify the Job within its parent scope. - // This field should contain at most 63 characters. - // Only alphanumeric characters or '-' are accepted. + // This field should contain at most 63 characters and must start with + // lowercase characters. + // Only lowercase characters, numbers and '-' are accepted. // The '-' character cannot be the first or the last one. // A system generated ID will be used if the field is not set. // diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto index dc224aa4328c..27d2b5381109 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/job.proto @@ -318,7 +318,7 @@ message AllocationPolicy { string disk_interface = 6; } - // A new or an existing persistent disk or a local ssd attached to a VM + // A new or an existing persistent disk (PD) or a local ssd attached to a VM // instance. message AttachedDisk { oneof attached { @@ -335,7 +335,7 @@ message AllocationPolicy { string device_name = 3; } - // Accelerator describes Compute Engine accelerators to be attached to VMs. + // Accelerator describes Compute Engine accelerators to be attached to the VM. message Accelerator { // The accelerator type. For example, "nvidia-tesla-t4". // See `gcloud compute accelerator-types list`. @@ -367,12 +367,14 @@ message AllocationPolicy { ProvisioningModel provisioning_model = 4; // The accelerators attached to each VM instance. - // Not yet implemented. repeated Accelerator accelerators = 5; // Non-boot disks to be attached for each VM created by this InstancePolicy. - // New disks will be deleted when the attached VM is deleted. + // New disks will be deleted when the VM is deleted. repeated AttachedDisk disks = 6; + + // If specified, VMs will be allocated only inside the matching reservation. + string reservation = 7; } // Either an InstancePolicy or an instance template. @@ -451,7 +453,7 @@ message AllocationPolicy { // Deprecated: please use instances[0].template instead. repeated string instance_templates = 3 [deprecated = true]; - // Deprecated: please use instances[i].policy.provisioning_model instead. + // Deprecated: please use instances[0].policy.provisioning_model instead. repeated ProvisioningModel provisioning_models = 4 [deprecated = true]; // Deprecated: please use service_account instead. diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/task.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/task.proto index 42b085685342..6b69165bf557 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/task.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/task.proto @@ -131,12 +131,12 @@ message Runnable { bool block_external_network = 9; // Optional username for logging in to a docker registry. If username - // matches `projects/*/secrets/*/versions/*` then Batch will read the + // matches "projects/*/secrets/*/versions/*" then Batch will read the // username from the Secret Manager. string username = 10; // Optional password for logging in to a docker registry. If password - // matches `projects/*/secrets/*/versions/*` then Batch will read the + // matches "projects/*/secrets/*/versions/*" then Batch will read the // password from the Secret Manager; string password = 11; } diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto index b71a62bb8b96..4112d2363a61 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto +++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/proto/google/cloud/batch/v1alpha/volume.proto @@ -25,49 +25,53 @@ option objc_class_prefix = "GCB"; option php_namespace = "Google\\Cloud\\Batch\\V1alpha"; option ruby_package = "Google::Cloud::Batch::V1alpha"; -// Volume and mount parameters to be associated with a TaskSpec. A TaskSpec -// might describe zero, one, or multiple volumes to be mounted as part of the -// task. +// Volume describes a volume and parameters for it to be mounted to a VM. message Volume { // The source for the volume. oneof source { - // An NFS source for the volume (could be a Filestore, for example). + // A Network File System (NFS) volume. For example, a + // Filestore file share. NFS nfs = 1; - // A persistent disk source for the volume. + // Deprecated: please use device_name instead. PD pd = 2 [deprecated = true]; - // A Google Cloud Storage source for the volume. + // A Google Cloud Storage (GCS) volume. GCS gcs = 3; - // Device name of an attached disk + // Device name of an attached disk volume, which should align with a + // device_name specified by + // job.allocation_policy.instances[0].policy.disks[i].device_name or + // defined by the given instance template in + // job.allocation_policy.instances[0].instance_template. string device_name = 6; } - // Mount path for the volume, e.g. /mnt/share + // The mount path for the volume, e.g. /mnt/disks/share. string mount_path = 4; - // Mount options - // For Google Cloud Storage, mount options are the global options supported by - // gcsfuse tool. Batch will use them to mount the volume with the following - // command: - // "gcsfuse [global options] bucket mountpoint". - // For PD, NFS, mount options are these supported by /etc/fstab. Batch will - // use Fstab to mount such volumes. - // https://help.ubuntu.com/community/Fstab + // For Google Cloud Storage (GCS), mount options are the options supported by + // the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). + // For existing persistent disks, mount options provided by the + // mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except + // writing are supported. This is due to restrictions of multi-writer mode + // (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). + // For other attached disks and Network File System (NFS), mount options are + // these supported by the mount command + // (https://man7.org/linux/man-pages/man8/mount.8.html). repeated string mount_options = 5; } -// Represents an NFS server and remote path: : +// Represents an NFS volume. message NFS { - // URI of the NFS server, e.g. an IP address. + // The IP address of the NFS. string server = 1; - // Remote source path exported from NFS, e.g., "/share". + // Remote source path exported from the NFS, e.g., "/share". string remote_path = 2; } -// Represents a GCP persistent disk +// Deprecated: please use device_name instead. message PD { // PD disk name, e.g. pd-1. string disk = 1; @@ -82,7 +86,7 @@ message PD { bool existing = 3 [deprecated = true]; } -// Represents a Google Cloud Storage volume source config. +// Represents a Google Cloud Storage volume. message GCS { // Remote path, either a bucket name or a subdirectory of a bucket, e.g.: // bucket_name, bucket_name/subdirectory/