> fields = new HashMap<>();
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 0713a7e4ed59..1c60c1cefe8f 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
@@ -8398,7 +8398,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -8410,7 +8415,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -8423,7 +8433,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -8435,7 +8450,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -8519,7 +8539,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -8542,7 +8567,12 @@ public java.lang.String getNetwork() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -8568,7 +8598,12 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -8591,7 +8626,12 @@ public java.lang.String getSubnetwork() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9020,7 +9060,12 @@ public Builder mergeFrom(
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9042,7 +9087,12 @@ public java.lang.String getNetwork() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9064,7 +9114,12 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9085,7 +9140,12 @@ public Builder setNetwork(java.lang.String value) {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9102,7 +9162,12 @@ public Builder clearNetwork() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9126,7 +9191,12 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9148,7 +9218,12 @@ public java.lang.String getSubnetwork() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9170,7 +9245,12 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9191,7 +9271,12 @@ public Builder setSubnetwork(java.lang.String value) {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9208,7 +9293,12 @@ public Builder clearSubnetwork() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java
index b1676dbce669..6afd340ce45b 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpec.java
@@ -450,8 +450,7 @@ public int getEnvironmentsCount() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -474,8 +473,7 @@ public java.util.Map getEnvironments() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -489,8 +487,7 @@ public java.util.Map getEnvironmentsMap() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -509,8 +506,7 @@ public java.lang.String getEnvironmentsOrDefault(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2794,8 +2790,7 @@ public int getEnvironmentsCount() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2818,8 +2813,7 @@ public java.util.Map getEnvironments() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2833,8 +2827,7 @@ public java.util.Map getEnvironmentsMap() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2853,8 +2846,7 @@ public java.lang.String getEnvironmentsOrDefault(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2881,8 +2873,7 @@ public Builder clearEnvironments() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2904,8 +2895,7 @@ public java.util.Map getMutableEnvironments(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2926,8 +2916,7 @@ public Builder putEnvironments(java.lang.String key, java.lang.String value) {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java
index 448ebf4d71a0..8132fd659c38 100644
--- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java
+++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/TaskSpecOrBuilder.java
@@ -298,8 +298,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -310,8 +309,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -325,8 +323,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -337,8 +334,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -353,8 +349,7 @@ java.lang.String getEnvironmentsOrDefault(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
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 0519f68f45dc..be86dbf8cad5 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
@@ -337,10 +337,20 @@ message AllocationPolicy {
// A network interface.
message NetworkInterface {
- // The URL of the network resource.
+ // The URL of an existing network resource.
+ // You can specify the network as a full or partial URL.
+ // For example, the following are all valid URLs:
+ // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ // projects/{project}/global/networks/{network}
+ // global/networks/{network}
string network = 1;
- // The URL of the Subnetwork resource.
+ // The URL of an existing subnetwork resource in the network.
+ // You can specify the subnetwork as a full or partial URL.
+ // For example, the following are all valid URLs:
+ // https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ // projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ // regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
// Default is false (with an external IP address). Required if
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..3c6251b94edd 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
@@ -230,8 +230,7 @@ message TaskSpec {
// If task ends with non-zero exit code, retry the task with max_retry_count.
repeated LifecyclePolicy lifecycle_policies = 9;
- // Environment variables to set before running the Task.
- // You can set up to 100 environments.
+ // Deprecated: please use environment(non-plural) instead.
map environments = 6 [deprecated = true];
// Volumes to mount before running Tasks using this TaskSpec.
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 6aa6f5654b5a..d4403ebf455a 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
@@ -5475,6 +5475,44 @@ public interface InstancePolicyOrBuilder
com.google.cloud.batch.v1alpha.AllocationPolicy.AcceleratorOrBuilder getAcceleratorsOrBuilder(
int index);
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ *
+ * @return Whether the bootDisk field is set.
+ */
+ boolean hasBootDisk();
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ *
+ * @return The bootDisk.
+ */
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk getBootDisk();
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ com.google.cloud.batch.v1alpha.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder();
+
/**
*
*
@@ -5911,6 +5949,57 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.Accelerator getAccelerato
return accelerators_.get(index);
}
+ public static final int BOOT_DISK_FIELD_NUMBER = 8;
+ private com.google.cloud.batch.v1alpha.AllocationPolicy.Disk bootDisk_;
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ *
+ * @return Whether the bootDisk field is set.
+ */
+ @java.lang.Override
+ public boolean hasBootDisk() {
+ return bootDisk_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ *
+ * @return The bootDisk.
+ */
+ @java.lang.Override
+ public com.google.cloud.batch.v1alpha.AllocationPolicy.Disk getBootDisk() {
+ return bootDisk_ == null
+ ? com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.getDefaultInstance()
+ : bootDisk_;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ @java.lang.Override
+ public com.google.cloud.batch.v1alpha.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder() {
+ return getBootDisk();
+ }
+
public static final int DISKS_FIELD_NUMBER = 6;
private java.util.List disks_;
/**
@@ -6076,6 +6165,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reservation_);
}
+ if (bootDisk_ != null) {
+ output.writeMessage(8, getBootDisk());
+ }
getUnknownFields().writeTo(output);
}
@@ -6114,6 +6206,9 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reservation_);
}
+ if (bootDisk_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBootDisk());
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -6135,6 +6230,10 @@ public boolean equals(final java.lang.Object obj) {
if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false;
if (provisioningModel_ != other.provisioningModel_) return false;
if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false;
+ if (hasBootDisk() != other.hasBootDisk()) return false;
+ if (hasBootDisk()) {
+ if (!getBootDisk().equals(other.getBootDisk())) return false;
+ }
if (!getDisksList().equals(other.getDisksList())) return false;
if (!getReservation().equals(other.getReservation())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
@@ -6162,6 +6261,10 @@ public int hashCode() {
hash = (37 * hash) + ACCELERATORS_FIELD_NUMBER;
hash = (53 * hash) + getAcceleratorsList().hashCode();
}
+ if (hasBootDisk()) {
+ hash = (37 * hash) + BOOT_DISK_FIELD_NUMBER;
+ hash = (53 * hash) + getBootDisk().hashCode();
+ }
if (getDisksCount() > 0) {
hash = (37 * hash) + DISKS_FIELD_NUMBER;
hash = (53 * hash) + getDisksList().hashCode();
@@ -6325,6 +6428,12 @@ public Builder clear() {
acceleratorsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
+ if (bootDiskBuilder_ == null) {
+ bootDisk_ = null;
+ } else {
+ bootDisk_ = null;
+ bootDiskBuilder_ = null;
+ }
if (disksBuilder_ == null) {
disks_ = java.util.Collections.emptyList();
} else {
@@ -6380,6 +6489,11 @@ public com.google.cloud.batch.v1alpha.AllocationPolicy.InstancePolicy buildParti
} else {
result.accelerators_ = acceleratorsBuilder_.build();
}
+ if (bootDiskBuilder_ == null) {
+ result.bootDisk_ = bootDisk_;
+ } else {
+ result.bootDisk_ = bootDiskBuilder_.build();
+ }
if (disksBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
disks_ = java.util.Collections.unmodifiableList(disks_);
@@ -6492,6 +6606,9 @@ public Builder mergeFrom(
}
}
}
+ if (other.hasBootDisk()) {
+ mergeBootDisk(other.getBootDisk());
+ }
if (disksBuilder_ == null) {
if (!other.disks_.isEmpty()) {
if (disks_.isEmpty()) {
@@ -6608,6 +6725,12 @@ public Builder mergeFrom(
break;
} // case 58
+ case 66:
+ {
+ input.readMessage(getBootDiskFieldBuilder().getBuilder(), extensionRegistry);
+
+ break;
+ } // case 66
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -7553,6 +7676,201 @@ public Builder removeAccelerators(int index) {
return acceleratorsBuilder_;
}
+ private com.google.cloud.batch.v1alpha.AllocationPolicy.Disk bootDisk_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk,
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.Builder,
+ com.google.cloud.batch.v1alpha.AllocationPolicy.DiskOrBuilder>
+ bootDiskBuilder_;
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ *
+ * @return Whether the bootDisk field is set.
+ */
+ public boolean hasBootDisk() {
+ return bootDiskBuilder_ != null || bootDisk_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ *
+ * @return The bootDisk.
+ */
+ public com.google.cloud.batch.v1alpha.AllocationPolicy.Disk getBootDisk() {
+ if (bootDiskBuilder_ == null) {
+ return bootDisk_ == null
+ ? com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.getDefaultInstance()
+ : bootDisk_;
+ } else {
+ return bootDiskBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ public Builder setBootDisk(com.google.cloud.batch.v1alpha.AllocationPolicy.Disk value) {
+ if (bootDiskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bootDisk_ = value;
+ onChanged();
+ } else {
+ bootDiskBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ public Builder setBootDisk(
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.Builder builderForValue) {
+ if (bootDiskBuilder_ == null) {
+ bootDisk_ = builderForValue.build();
+ onChanged();
+ } else {
+ bootDiskBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ public Builder mergeBootDisk(com.google.cloud.batch.v1alpha.AllocationPolicy.Disk value) {
+ if (bootDiskBuilder_ == null) {
+ if (bootDisk_ != null) {
+ bootDisk_ =
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.newBuilder(bootDisk_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ bootDisk_ = value;
+ }
+ onChanged();
+ } else {
+ bootDiskBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ public Builder clearBootDisk() {
+ if (bootDiskBuilder_ == null) {
+ bootDisk_ = null;
+ onChanged();
+ } else {
+ bootDisk_ = null;
+ bootDiskBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ public com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.Builder getBootDiskBuilder() {
+
+ onChanged();
+ return getBootDiskFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ public com.google.cloud.batch.v1alpha.AllocationPolicy.DiskOrBuilder getBootDiskOrBuilder() {
+ if (bootDiskBuilder_ != null) {
+ return bootDiskBuilder_.getMessageOrBuilder();
+ } else {
+ return bootDisk_ == null
+ ? com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.getDefaultInstance()
+ : bootDisk_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Book disk to be created and attached to each VM by this InstancePolicy.
+ * Boot disk will be deleted when the VM is deleted.
+ *
+ *
+ * .google.cloud.batch.v1alpha.AllocationPolicy.Disk boot_disk = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk,
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.Builder,
+ com.google.cloud.batch.v1alpha.AllocationPolicy.DiskOrBuilder>
+ getBootDiskFieldBuilder() {
+ if (bootDiskBuilder_ == null) {
+ bootDiskBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk,
+ com.google.cloud.batch.v1alpha.AllocationPolicy.Disk.Builder,
+ com.google.cloud.batch.v1alpha.AllocationPolicy.DiskOrBuilder>(
+ getBootDisk(), getParentForChildren(), isClean());
+ bootDisk_ = null;
+ }
+ return bootDiskBuilder_;
+ }
+
private java.util.List disks_ =
java.util.Collections.emptyList();
@@ -9413,7 +9731,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9425,7 +9748,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9438,7 +9766,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9450,7 +9783,12 @@ public interface NetworkInterfaceOrBuilder
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9534,7 +9872,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9557,7 +9900,12 @@ public java.lang.String getNetwork() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -9583,7 +9931,12 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -9606,7 +9959,12 @@ public java.lang.String getSubnetwork() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -10040,7 +10398,12 @@ public Builder mergeFrom(
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -10062,7 +10425,12 @@ public java.lang.String getNetwork() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -10084,7 +10452,12 @@ public com.google.protobuf.ByteString getNetworkBytes() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -10105,7 +10478,12 @@ public Builder setNetwork(java.lang.String value) {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -10122,7 +10500,12 @@ public Builder clearNetwork() {
*
*
*
- * The URL of the network resource.
+ * The URL of an existing network resource.
+ * You can specify the network as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ * projects/{project}/global/networks/{network}
+ * global/networks/{network}
*
*
* string network = 1;
@@ -10146,7 +10529,12 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -10168,7 +10556,12 @@ public java.lang.String getSubnetwork() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -10190,7 +10583,12 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -10211,7 +10609,12 @@ public Builder setSubnetwork(java.lang.String value) {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -10228,7 +10631,12 @@ public Builder clearSubnetwork() {
*
*
*
- * The URL of the Subnetwork resource.
+ * The URL of an existing subnetwork resource in the network.
+ * You can specify the subnetwork as a full or partial URL.
+ * For example, the following are all valid URLs:
+ * https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ * regions/{region}/subnetworks/{subnetwork}
*
*
* string subnetwork = 2;
@@ -11521,7 +11929,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=446
+ * google/cloud/batch/v1alpha/job.proto;l=460
* @return Whether the instance field is set.
*/
@java.lang.Override
@@ -11541,7 +11949,7 @@ public boolean hasInstance() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=446
+ * google/cloud/batch/v1alpha/job.proto;l=460
* @return The instance.
*/
@java.lang.Override
@@ -11671,7 +12079,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @return A list containing the instanceTemplates.
*/
@java.lang.Deprecated
@@ -11688,7 +12096,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @return The count of instanceTemplates.
*/
@java.lang.Deprecated
@@ -11705,7 +12113,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param index The index of the element to return.
* @return The instanceTemplates at the given index.
*/
@@ -11723,7 +12131,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param index The index of the value to return.
* @return The bytes of the instanceTemplates at the given index.
*/
@@ -11762,7 +12170,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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @return A list containing the provisioningModels.
*/
@java.lang.Override
@@ -11785,7 +12193,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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @return The count of provisioningModels.
*/
@java.lang.Override
@@ -11805,7 +12213,7 @@ public int getProvisioningModelsCount() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @param index The index of the element to return.
* @return The provisioningModels at the given index.
*/
@@ -11827,7 +12235,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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @return A list containing the enum numeric values on the wire for provisioningModels.
*/
@java.lang.Override
@@ -11847,7 +12255,7 @@ public java.util.List getProvisioningModelsValueList() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @param index The index of the value to return.
* @return The enum numeric value on the wire of provisioningModels at the given index.
*/
@@ -11871,7 +12279,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @return The serviceAccountEmail.
*/
@java.lang.Override
@@ -11897,7 +12305,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @return The bytes for serviceAccountEmail.
*/
@java.lang.Override
@@ -13034,7 +13442,7 @@ public Builder clearLocation() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=446
+ * google/cloud/batch/v1alpha/job.proto;l=460
* @return Whether the instance field is set.
*/
@java.lang.Deprecated
@@ -13053,7 +13461,7 @@ public boolean hasInstance() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=446
+ * google/cloud/batch/v1alpha/job.proto;l=460
* @return The instance.
*/
@java.lang.Deprecated
@@ -13686,7 +14094,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @return A list containing the instanceTemplates.
*/
@java.lang.Deprecated
@@ -13703,7 +14111,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @return The count of instanceTemplates.
*/
@java.lang.Deprecated
@@ -13720,7 +14128,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param index The index of the element to return.
* @return The instanceTemplates at the given index.
*/
@@ -13738,7 +14146,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param index The index of the value to return.
* @return The bytes of the instanceTemplates at the given index.
*/
@@ -13756,7 +14164,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param index The index to set the value at.
* @param value The instanceTemplates to set.
* @return This builder for chaining.
@@ -13781,7 +14189,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param value The instanceTemplates to add.
* @return This builder for chaining.
*/
@@ -13805,7 +14213,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param values The instanceTemplates to add.
* @return This builder for chaining.
*/
@@ -13826,7 +14234,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -13846,7 +14254,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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param value The bytes of the instanceTemplates to add.
* @return This builder for chaining.
*/
@@ -13883,7 +14291,7 @@ private void ensureProvisioningModelsIsMutable() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @return A list containing the provisioningModels.
*/
@java.lang.Deprecated
@@ -13905,7 +14313,7 @@ private void ensureProvisioningModelsIsMutable() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @return The count of provisioningModels.
*/
@java.lang.Deprecated
@@ -13924,7 +14332,7 @@ public int getProvisioningModelsCount() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param index The index of the element to return.
* @return The provisioningModels at the given index.
*/
@@ -13945,7 +14353,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=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param index The index to set the value at.
* @param value The provisioningModels to set.
* @return This builder for chaining.
@@ -13973,7 +14381,7 @@ public Builder setProvisioningModels(
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param value The provisioningModels to add.
* @return This builder for chaining.
*/
@@ -14000,7 +14408,7 @@ public Builder addProvisioningModels(
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param values The provisioningModels to add.
* @return This builder for chaining.
*/
@@ -14028,7 +14436,7 @@ public Builder addAllProvisioningModels(
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -14050,7 +14458,7 @@ public Builder clearProvisioningModels() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @return A list containing the enum numeric values on the wire for provisioningModels.
*/
@java.lang.Deprecated
@@ -14069,7 +14477,7 @@ public java.util.List getProvisioningModelsValueList() {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param index The index of the value to return.
* @return The enum numeric value on the wire of provisioningModels at the given index.
*/
@@ -14089,7 +14497,7 @@ public int getProvisioningModelsValue(int index) {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @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.
@@ -14113,7 +14521,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=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param value The enum numeric value on the wire for provisioningModels to add.
* @return This builder for chaining.
*/
@@ -14136,7 +14544,7 @@ public Builder addProvisioningModelsValue(int value) {
*
*
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated.
- * See google/cloud/batch/v1alpha/job.proto;l=456
+ * See google/cloud/batch/v1alpha/job.proto;l=470
* @param values The enum numeric values on the wire for provisioningModels to add.
* @return This builder for chaining.
*/
@@ -14161,7 +14569,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @return The serviceAccountEmail.
*/
@java.lang.Deprecated
@@ -14186,7 +14594,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @return The bytes for serviceAccountEmail.
*/
@java.lang.Deprecated
@@ -14211,7 +14619,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @param value The serviceAccountEmail to set.
* @return This builder for chaining.
*/
@@ -14235,7 +14643,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -14255,7 +14663,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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @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 fa61e65a0102..76f8104b9391 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=446
+ * google/cloud/batch/v1alpha/job.proto;l=460
* @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=446
+ * google/cloud/batch/v1alpha/job.proto;l=460
* @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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @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=453
+ * google/cloud/batch/v1alpha/job.proto;l=467
* @param index The index of the value to return.
* @return The bytes of the instanceTemplates at the given index.
*/
@@ -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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @return A list containing the provisioningModels.
*/
@java.lang.Deprecated
@@ -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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @return The count of provisioningModels.
*/
@java.lang.Deprecated
@@ -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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @param index The index of the element to return.
* @return The provisioningModels at the given index.
*/
@@ -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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @return A list containing the enum numeric values on the wire for provisioningModels.
*/
@java.lang.Deprecated
@@ -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=456
+ * google/cloud/batch/v1alpha/job.proto;l=470
* @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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @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=459
+ * See google/cloud/batch/v1alpha/job.proto;l=473
* @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/JobProto.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/JobProto.java
index f92b95e8c1dd..dcae6feb2769 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\"\247\017\n"
+ + "TE_CHANGED\020\001\022\026\n\022TASK_STATE_CHANGED\020\002\"\355\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,55 +235,57 @@ 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\356\002\n\016InstancePolic"
+ + "_gpu_drivers\030\003 \001(\010B\002\030\001\032\264\003\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"
+ "e.cloud.batch.v1alpha.AllocationPolicy.P"
+ "rovisioningModel\022N\n\014accelerators\030\005 \003(\01328"
+ ".google.cloud.batch.v1alpha.AllocationPo"
- + "licy.Accelerator\022H\n\005disks\030\006 \003(\01329.google"
- + ".cloud.batch.v1alpha.AllocationPolicy.At"
- + "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"
+ + "licy.Accelerator\022D\n\tboot_disk\030\010 \001(\01321.go"
+ + "ogle.cloud.batch.v1alpha.AllocationPolic"
+ + "y.Disk\022H\n\005disks\030\006 \003(\01329.google.cloud.bat"
+ + "ch.v1alpha.AllocationPolicy.AttachedDisk"
+ + "\022\023\n\013reservation\030\007 \001(\t\032\266\001\n\030InstancePolicy"
+ + "OrTemplate\022M\n\006policy\030\001 \001(\0132;.google.clou"
+ + "d.batch.v1alpha.AllocationPolicy.Instanc"
+ + "ePolicyH\000\022\033\n\021instance_template\030\002 \001(\tH\000\022\033"
+ + "\n\023install_gpu_drivers\030\003 \001(\010B\021\n\017policy_te"
+ + "mplate\032W\n\020NetworkInterface\022\017\n\007network\030\001 "
+ + "\001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022\036\n\026no_external_i"
+ + "p_address\030\003 \001(\010\032j\n\rNetworkPolicy\022Y\n\022netw"
+ + "ork_interfaces\030\001 \003(\0132=.google.cloud.batc"
+ + "h.v1alpha.AllocationPolicy.NetworkInterf"
+ + "ace\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
+ + "\030\002 \001(\t:\0028\001\"`\n\021ProvisioningModel\022\"\n\036PROVI"
+ + "SIONING_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\tTaskGro"
+ + "up\022\021\n\004name\030\001 \001(\tB\003\340A\003\022<\n\ttask_spec\030\003 \001(\013"
+ + "2$.google.cloud.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\021scheduling_policy\030\006 \001(\01626.google"
+ + ".cloud.batch.v1alpha.TaskGroup.Schedulin"
+ + "gPolicy\022G\n\021allocation_policy\030\007 \001(\0132,.goo"
+ + "gle.cloud.batch.v1alpha.AllocationPolicy"
+ + "\022A\n\006labels\030\010 \003(\01321.google.cloud.batch.v1"
+ + "alpha.TaskGroup.LabelsEntry\022B\n\021task_envi"
+ + "ronments\030\t \003(\0132\'.google.cloud.batch.v1al"
+ + "pha.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\016perm"
+ + "issive_ssh\030\014 \001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001"
+ + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"N\n\020SchedulingPol"
+ + "icy\022!\n\035SCHEDULING_POLICY_UNSPECIFIED\020\000\022\027"
+ + "\n\023AS_SOON_AS_POSSIBLE\020\001:o\352Al\n\036batch.goog"
+ + "leapis.com/TaskGroup\022Jprojects/{project}"
+ + "/locations/{location}/jobs/{job}/taskGro"
+ + "ups/{task_group}\"/\n\016ServiceAccount\022\r\n\005em"
+ + "ail\030\001 \001(\t\022\016\n\006scopes\030\002 \003(\tB\315\001\n\036com.google"
+ + ".cloud.batch.v1alphaB\010JobProtoP\001Z?google"
+ + ".golang.org/genproto/googleapis/cloud/ba"
+ + "tch/v1alpha;batch\242\002\003GCB\252\002\032Google.Cloud.B"
+ + "atch.V1Alpha\312\002\032Google\\Cloud\\Batch\\V1alph"
+ + "a\352\002\035Google::Cloud::Batch::V1alphab\006proto"
+ + "3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -477,6 +479,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"MinCpuPlatform",
"ProvisioningModel",
"Accelerators",
+ "BootDisk",
"Disks",
"Reservation",
});
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 b67796b131d8..d04f8d0a9242 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
@@ -133,13 +133,10 @@ public com.google.protobuf.ByteString getEmailBytes() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return A list containing the scopes.
*/
- @java.lang.Deprecated
public com.google.protobuf.ProtocolStringList getScopesList() {
return scopes_;
}
@@ -151,13 +148,10 @@ public com.google.protobuf.ProtocolStringList getScopesList() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return The count of scopes.
*/
- @java.lang.Deprecated
public int getScopesCount() {
return scopes_.size();
}
@@ -169,14 +163,11 @@ public int getScopesCount() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
- @java.lang.Deprecated
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
@@ -188,14 +179,11 @@ public java.lang.String getScopes(int index) {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * 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.
*/
- @java.lang.Deprecated
public com.google.protobuf.ByteString getScopesBytes(int index) {
return scopes_.getByteString(index);
}
@@ -710,13 +698,10 @@ private void ensureScopesIsMutable() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return A list containing the scopes.
*/
- @java.lang.Deprecated
public com.google.protobuf.ProtocolStringList getScopesList() {
return scopes_.getUnmodifiableView();
}
@@ -728,13 +713,10 @@ public com.google.protobuf.ProtocolStringList getScopesList() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return The count of scopes.
*/
- @java.lang.Deprecated
public int getScopesCount() {
return scopes_.size();
}
@@ -746,14 +728,11 @@ public int getScopesCount() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
- @java.lang.Deprecated
public java.lang.String getScopes(int index) {
return scopes_.get(index);
}
@@ -765,14 +744,11 @@ public java.lang.String getScopes(int index) {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * 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.
*/
- @java.lang.Deprecated
public com.google.protobuf.ByteString getScopesBytes(int index) {
return scopes_.getByteString(index);
}
@@ -784,15 +760,12 @@ public com.google.protobuf.ByteString getScopesBytes(int index) {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * 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.
*/
- @java.lang.Deprecated
public Builder setScopes(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -810,14 +783,11 @@ public Builder setScopes(int index, java.lang.String value) {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @param value The scopes to add.
* @return This builder for chaining.
*/
- @java.lang.Deprecated
public Builder addScopes(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
@@ -835,14 +805,11 @@ public Builder addScopes(java.lang.String value) {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @param values The scopes to add.
* @return This builder for chaining.
*/
- @java.lang.Deprecated
public Builder addAllScopes(java.lang.Iterable values) {
ensureScopesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_);
@@ -857,13 +824,10 @@ public Builder addAllScopes(java.lang.Iterable values) {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return This builder for chaining.
*/
- @java.lang.Deprecated
public Builder clearScopes() {
scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
@@ -878,14 +842,11 @@ public Builder clearScopes() {
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @param value The bytes of the scopes to add.
* @return This builder for chaining.
*/
- @java.lang.Deprecated
public Builder addScopesBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
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 394ad7e49623..4c5f3948216d 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
@@ -62,13 +62,10 @@ public interface ServiceAccountOrBuilder
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return A list containing the scopes.
*/
- @java.lang.Deprecated
java.util.List getScopesList();
/**
*
@@ -78,13 +75,10 @@ public interface ServiceAccountOrBuilder
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @return The count of scopes.
*/
- @java.lang.Deprecated
int getScopesCount();
/**
*
@@ -94,14 +88,11 @@ public interface ServiceAccountOrBuilder
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * google/cloud/batch/v1alpha/job.proto;l=564
* @param index The index of the element to return.
* @return The scopes at the given index.
*/
- @java.lang.Deprecated
java.lang.String getScopes(int index);
/**
*
@@ -111,13 +102,10 @@ public interface ServiceAccountOrBuilder
* addition to the cloud-platform API scope that will be added by default.
*
*
- * repeated string scopes = 2 [deprecated = true];
+ * repeated string scopes = 2;
*
- * @deprecated google.cloud.batch.v1alpha.ServiceAccount.scopes is deprecated. See
- * 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.
*/
- @java.lang.Deprecated
com.google.protobuf.ByteString getScopesBytes(int index);
}
diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpec.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpec.java
index 65491976f475..bd58c6990691 100644
--- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpec.java
+++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpec.java
@@ -450,8 +450,7 @@ public int getEnvironmentsCount() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -474,8 +473,7 @@ public java.util.Map getEnvironments() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -489,8 +487,7 @@ public java.util.Map getEnvironmentsMap() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -509,8 +506,7 @@ public java.lang.String getEnvironmentsOrDefault(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2800,8 +2796,7 @@ public int getEnvironmentsCount() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2824,8 +2819,7 @@ public java.util.Map getEnvironments() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2839,8 +2833,7 @@ public java.util.Map getEnvironmentsMap() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2859,8 +2852,7 @@ public java.lang.String getEnvironmentsOrDefault(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2887,8 +2879,7 @@ public Builder clearEnvironments() {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2910,8 +2901,7 @@ public java.util.Map getMutableEnvironments(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -2932,8 +2922,7 @@ public Builder putEnvironments(java.lang.String key, java.lang.String value) {
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
diff --git a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpecOrBuilder.java b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpecOrBuilder.java
index a58b5fc777aa..7bfe50b516e4 100644
--- a/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpecOrBuilder.java
+++ b/java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/TaskSpecOrBuilder.java
@@ -299,8 +299,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -311,8 +310,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -326,8 +324,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -338,8 +335,7 @@ public interface TaskSpecOrBuilder
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
@@ -354,8 +350,7 @@ java.lang.String getEnvironmentsOrDefault(
*
*
*
- * Environment variables to set before running the Task.
- * You can set up to 100 environments.
+ * Deprecated: please use environment(non-plural) instead.
*
*
* map<string, string> environments = 6 [deprecated = true];
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 27d2b5381109..9cde8514acdf 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
@@ -369,6 +369,10 @@ message AllocationPolicy {
// The accelerators attached to each VM instance.
repeated Accelerator accelerators = 5;
+ // Book disk to be created and attached to each VM by this InstancePolicy.
+ // Boot disk will be deleted when the VM is deleted.
+ Disk boot_disk = 8;
+
// Non-boot disks to be attached for each VM created by this InstancePolicy.
// New disks will be deleted when the VM is deleted.
repeated AttachedDisk disks = 6;
@@ -398,10 +402,20 @@ message AllocationPolicy {
// A network interface.
message NetworkInterface {
- // The URL of the network resource.
+ // The URL of an existing network resource.
+ // You can specify the network as a full or partial URL.
+ // For example, the following are all valid URLs:
+ // https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}
+ // projects/{project}/global/networks/{network}
+ // global/networks/{network}
string network = 1;
- // The URL of the Subnetwork resource.
+ // The URL of an existing subnetwork resource in the network.
+ // You can specify the subnetwork as a full or partial URL.
+ // For example, the following are all valid URLs:
+ // https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ // projects/{project}/regions/{region}/subnetworks/{subnetwork}
+ // regions/{region}/subnetworks/{subnetwork}
string subnetwork = 2;
// Default is false (with an external IP address). Required if
@@ -562,5 +576,5 @@ message ServiceAccount {
// List of scopes to be enabled for this service account on the VM, in
// addition to the cloud-platform API scope that will be added by default.
- repeated string scopes = 2 [deprecated = true];
+ repeated string scopes = 2;
}
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..a28545ad4957 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
@@ -238,8 +238,7 @@ message TaskSpec {
// If task ends with non-zero exit code, retry the task with max_retry_count.
repeated LifecyclePolicy lifecycle_policies = 9;
- // Environment variables to set before running the Task.
- // You can set up to 100 environments.
+ // Deprecated: please use environment(non-plural) instead.
map environments = 6 [deprecated = true];
// Volumes to mount before running Tasks using this TaskSpec.