@@ -1371,7 +1371,9 @@ public interface DiskOrBuilder
1371
1371
* Disk type as shown in `gcloud compute disk-types list`.
1372
1372
* For example, local SSD uses type "local-ssd".
1373
1373
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
1374
- * or "pd-standard".
1374
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
1375
+ * default type for non-boot disks, "pd-balanced" will be used as the
1376
+ * default type for boot disks.
1375
1377
* </pre>
1376
1378
*
1377
1379
* <code>string type = 1;</code>
@@ -1386,7 +1388,9 @@ public interface DiskOrBuilder
1386
1388
* Disk type as shown in `gcloud compute disk-types list`.
1387
1389
* For example, local SSD uses type "local-ssd".
1388
1390
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
1389
- * or "pd-standard".
1391
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
1392
+ * default type for non-boot disks, "pd-balanced" will be used as the
1393
+ * default type for boot disks.
1390
1394
* </pre>
1391
1395
*
1392
1396
* <code>string type = 1;</code>
@@ -1757,7 +1761,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() {
1757
1761
* Disk type as shown in `gcloud compute disk-types list`.
1758
1762
* For example, local SSD uses type "local-ssd".
1759
1763
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
1760
- * or "pd-standard".
1764
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
1765
+ * default type for non-boot disks, "pd-balanced" will be used as the
1766
+ * default type for boot disks.
1761
1767
* </pre>
1762
1768
*
1763
1769
* <code>string type = 1;</code>
@@ -1783,7 +1789,9 @@ public java.lang.String getType() {
1783
1789
* Disk type as shown in `gcloud compute disk-types list`.
1784
1790
* For example, local SSD uses type "local-ssd".
1785
1791
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
1786
- * or "pd-standard".
1792
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
1793
+ * default type for non-boot disks, "pd-balanced" will be used as the
1794
+ * default type for boot disks.
1787
1795
* </pre>
1788
1796
*
1789
1797
* <code>string type = 1;</code>
@@ -2756,7 +2764,9 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) {
2756
2764
* Disk type as shown in `gcloud compute disk-types list`.
2757
2765
* For example, local SSD uses type "local-ssd".
2758
2766
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
2759
- * or "pd-standard".
2767
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
2768
+ * default type for non-boot disks, "pd-balanced" will be used as the
2769
+ * default type for boot disks.
2760
2770
* </pre>
2761
2771
*
2762
2772
* <code>string type = 1;</code>
@@ -2781,7 +2791,9 @@ public java.lang.String getType() {
2781
2791
* Disk type as shown in `gcloud compute disk-types list`.
2782
2792
* For example, local SSD uses type "local-ssd".
2783
2793
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
2784
- * or "pd-standard".
2794
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
2795
+ * default type for non-boot disks, "pd-balanced" will be used as the
2796
+ * default type for boot disks.
2785
2797
* </pre>
2786
2798
*
2787
2799
* <code>string type = 1;</code>
@@ -2806,7 +2818,9 @@ public com.google.protobuf.ByteString getTypeBytes() {
2806
2818
* Disk type as shown in `gcloud compute disk-types list`.
2807
2819
* For example, local SSD uses type "local-ssd".
2808
2820
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
2809
- * or "pd-standard".
2821
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
2822
+ * default type for non-boot disks, "pd-balanced" will be used as the
2823
+ * default type for boot disks.
2810
2824
* </pre>
2811
2825
*
2812
2826
* <code>string type = 1;</code>
@@ -2830,7 +2844,9 @@ public Builder setType(java.lang.String value) {
2830
2844
* Disk type as shown in `gcloud compute disk-types list`.
2831
2845
* For example, local SSD uses type "local-ssd".
2832
2846
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
2833
- * or "pd-standard".
2847
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
2848
+ * default type for non-boot disks, "pd-balanced" will be used as the
2849
+ * default type for boot disks.
2834
2850
* </pre>
2835
2851
*
2836
2852
* <code>string type = 1;</code>
@@ -2850,7 +2866,9 @@ public Builder clearType() {
2850
2866
* Disk type as shown in `gcloud compute disk-types list`.
2851
2867
* For example, local SSD uses type "local-ssd".
2852
2868
* Persistent disks and boot disks use "pd-balanced", "pd-extreme", "pd-ssd"
2853
- * or "pd-standard".
2869
+ * or "pd-standard". If not specified, "pd-standard" will be used as the
2870
+ * default type for non-boot disks, "pd-balanced" will be used as the
2871
+ * default type for boot disks.
2854
2872
* </pre>
2855
2873
*
2856
2874
* <code>string type = 1;</code>
@@ -4469,7 +4487,7 @@ public interface AcceleratorOrBuilder
4469
4487
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
4470
4488
*
4471
4489
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
4472
- * deprecated. See google/cloud/batch/v1/job.proto;l=360
4490
+ * deprecated. See google/cloud/batch/v1/job.proto;l=370
4473
4491
* @return The installGpuDrivers.
4474
4492
*/
4475
4493
@java.lang.Deprecated
@@ -4640,7 +4658,7 @@ public long getCount() {
4640
4658
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
4641
4659
*
4642
4660
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
4643
- * deprecated. See google/cloud/batch/v1/job.proto;l=360
4661
+ * deprecated. See google/cloud/batch/v1/job.proto;l=370
4644
4662
* @return The installGpuDrivers.
4645
4663
*/
4646
4664
@java.lang.Override
@@ -5302,7 +5320,7 @@ public Builder clearCount() {
5302
5320
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
5303
5321
*
5304
5322
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
5305
- * deprecated. See google/cloud/batch/v1/job.proto;l=360
5323
+ * deprecated. See google/cloud/batch/v1/job.proto;l=370
5306
5324
* @return The installGpuDrivers.
5307
5325
*/
5308
5326
@java.lang.Override
@@ -5320,7 +5338,7 @@ public boolean getInstallGpuDrivers() {
5320
5338
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
5321
5339
*
5322
5340
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
5323
- * deprecated. See google/cloud/batch/v1/job.proto;l=360
5341
+ * deprecated. See google/cloud/batch/v1/job.proto;l=370
5324
5342
* @param value The installGpuDrivers to set.
5325
5343
* @return This builder for chaining.
5326
5344
*/
@@ -5342,7 +5360,7 @@ public Builder setInstallGpuDrivers(boolean value) {
5342
5360
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
5343
5361
*
5344
5362
* @deprecated google.cloud.batch.v1.AllocationPolicy.Accelerator.install_gpu_drivers is
5345
- * deprecated. See google/cloud/batch/v1/job.proto;l=360
5363
+ * deprecated. See google/cloud/batch/v1/job.proto;l=370
5346
5364
* @return This builder for chaining.
5347
5365
*/
5348
5366
@java.lang.Deprecated
@@ -8525,6 +8543,20 @@ public interface InstancePolicyOrTemplateOrBuilder
8525
8543
*/
8526
8544
boolean getInstallGpuDrivers();
8527
8545
8546
+ /**
8547
+ *
8548
+ *
8549
+ * <pre>
8550
+ * Optional. Set this field true if you want Batch to install Ops Agent on
8551
+ * your behalf. Default is false.
8552
+ * </pre>
8553
+ *
8554
+ * <code>bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
8555
+ *
8556
+ * @return The installOpsAgent.
8557
+ */
8558
+ boolean getInstallOpsAgent();
8559
+
8528
8560
com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase
8529
8561
getPolicyTemplateCase();
8530
8562
}
@@ -8776,6 +8808,25 @@ public boolean getInstallGpuDrivers() {
8776
8808
return installGpuDrivers_;
8777
8809
}
8778
8810
8811
+ public static final int INSTALL_OPS_AGENT_FIELD_NUMBER = 4;
8812
+ private boolean installOpsAgent_ = false;
8813
+ /**
8814
+ *
8815
+ *
8816
+ * <pre>
8817
+ * Optional. Set this field true if you want Batch to install Ops Agent on
8818
+ * your behalf. Default is false.
8819
+ * </pre>
8820
+ *
8821
+ * <code>bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
8822
+ *
8823
+ * @return The installOpsAgent.
8824
+ */
8825
+ @java.lang.Override
8826
+ public boolean getInstallOpsAgent() {
8827
+ return installOpsAgent_;
8828
+ }
8829
+
8779
8830
private byte memoizedIsInitialized = -1;
8780
8831
8781
8832
@java.lang.Override
@@ -8800,6 +8851,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
8800
8851
if (installGpuDrivers_ != false) {
8801
8852
output.writeBool(3, installGpuDrivers_);
8802
8853
}
8854
+ if (installOpsAgent_ != false) {
8855
+ output.writeBool(4, installOpsAgent_);
8856
+ }
8803
8857
getUnknownFields().writeTo(output);
8804
8858
}
8805
8859
@@ -8820,6 +8874,9 @@ public int getSerializedSize() {
8820
8874
if (installGpuDrivers_ != false) {
8821
8875
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, installGpuDrivers_);
8822
8876
}
8877
+ if (installOpsAgent_ != false) {
8878
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, installOpsAgent_);
8879
+ }
8823
8880
size += getUnknownFields().getSerializedSize();
8824
8881
memoizedSize = size;
8825
8882
return size;
@@ -8837,6 +8894,7 @@ public boolean equals(final java.lang.Object obj) {
8837
8894
(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) obj;
8838
8895
8839
8896
if (getInstallGpuDrivers() != other.getInstallGpuDrivers()) return false;
8897
+ if (getInstallOpsAgent() != other.getInstallOpsAgent()) return false;
8840
8898
if (!getPolicyTemplateCase().equals(other.getPolicyTemplateCase())) return false;
8841
8899
switch (policyTemplateCase_) {
8842
8900
case 1:
@@ -8861,6 +8919,8 @@ public int hashCode() {
8861
8919
hash = (19 * hash) + getDescriptor().hashCode();
8862
8920
hash = (37 * hash) + INSTALL_GPU_DRIVERS_FIELD_NUMBER;
8863
8921
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDrivers());
8922
+ hash = (37 * hash) + INSTALL_OPS_AGENT_FIELD_NUMBER;
8923
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallOpsAgent());
8864
8924
switch (policyTemplateCase_) {
8865
8925
case 1:
8866
8926
hash = (37 * hash) + POLICY_FIELD_NUMBER;
@@ -9024,6 +9084,7 @@ public Builder clear() {
9024
9084
policyBuilder_.clear();
9025
9085
}
9026
9086
installGpuDrivers_ = false;
9087
+ installOpsAgent_ = false;
9027
9088
policyTemplateCase_ = 0;
9028
9089
policyTemplate_ = null;
9029
9090
return this;
@@ -9069,6 +9130,9 @@ private void buildPartial0(
9069
9130
if (((from_bitField0_ & 0x00000004) != 0)) {
9070
9131
result.installGpuDrivers_ = installGpuDrivers_;
9071
9132
}
9133
+ if (((from_bitField0_ & 0x00000008) != 0)) {
9134
+ result.installOpsAgent_ = installOpsAgent_;
9135
+ }
9072
9136
}
9073
9137
9074
9138
private void buildPartialOneofs(
@@ -9134,6 +9198,9 @@ public Builder mergeFrom(
9134
9198
if (other.getInstallGpuDrivers() != false) {
9135
9199
setInstallGpuDrivers(other.getInstallGpuDrivers());
9136
9200
}
9201
+ if (other.getInstallOpsAgent() != false) {
9202
+ setInstallOpsAgent(other.getInstallOpsAgent());
9203
+ }
9137
9204
switch (other.getPolicyTemplateCase()) {
9138
9205
case POLICY:
9139
9206
{
@@ -9197,6 +9264,12 @@ public Builder mergeFrom(
9197
9264
bitField0_ |= 0x00000004;
9198
9265
break;
9199
9266
} // case 24
9267
+ case 32:
9268
+ {
9269
+ installOpsAgent_ = input.readBool();
9270
+ bitField0_ |= 0x00000008;
9271
+ break;
9272
+ } // case 32
9200
9273
default:
9201
9274
{
9202
9275
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -9669,6 +9742,62 @@ public Builder clearInstallGpuDrivers() {
9669
9742
return this;
9670
9743
}
9671
9744
9745
+ private boolean installOpsAgent_;
9746
+ /**
9747
+ *
9748
+ *
9749
+ * <pre>
9750
+ * Optional. Set this field true if you want Batch to install Ops Agent on
9751
+ * your behalf. Default is false.
9752
+ * </pre>
9753
+ *
9754
+ * <code>bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
9755
+ *
9756
+ * @return The installOpsAgent.
9757
+ */
9758
+ @java.lang.Override
9759
+ public boolean getInstallOpsAgent() {
9760
+ return installOpsAgent_;
9761
+ }
9762
+ /**
9763
+ *
9764
+ *
9765
+ * <pre>
9766
+ * Optional. Set this field true if you want Batch to install Ops Agent on
9767
+ * your behalf. Default is false.
9768
+ * </pre>
9769
+ *
9770
+ * <code>bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
9771
+ *
9772
+ * @param value The installOpsAgent to set.
9773
+ * @return This builder for chaining.
9774
+ */
9775
+ public Builder setInstallOpsAgent(boolean value) {
9776
+
9777
+ installOpsAgent_ = value;
9778
+ bitField0_ |= 0x00000008;
9779
+ onChanged();
9780
+ return this;
9781
+ }
9782
+ /**
9783
+ *
9784
+ *
9785
+ * <pre>
9786
+ * Optional. Set this field true if you want Batch to install Ops Agent on
9787
+ * your behalf. Default is false.
9788
+ * </pre>
9789
+ *
9790
+ * <code>bool install_ops_agent = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
9791
+ *
9792
+ * @return This builder for chaining.
9793
+ */
9794
+ public Builder clearInstallOpsAgent() {
9795
+ bitField0_ = (bitField0_ & ~0x00000008);
9796
+ installOpsAgent_ = false;
9797
+ onChanged();
9798
+ return this;
9799
+ }
9800
+
9672
9801
@java.lang.Override
9673
9802
public final Builder setUnknownFields(
9674
9803
final com.google.protobuf.UnknownFieldSet unknownFields) {
0 commit comments