Skip to content

Commit 564c369

Browse files
chore: Update generation configuration at Tue Jun 25 23:10:13 UTC 2024 (#10988)
* chore: Update generation configuration at Tue Jun 25 23:10:13 UTC 2024 * chore: generate libraries at Tue Jun 25 23:13:25 UTC 2024
1 parent d910135 commit 564c369

File tree

43 files changed

+4076
-1061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4076
-1061
lines changed

generation_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
gapic_generator_version: 2.41.0
1+
gapic_generator_version: 2.42.0
22
protoc_version: '25.3'
3-
googleapis_commitish: e4e39feea63b5f0d646fc193acbf536b5d292b64
3+
googleapis_commitish: 46eb6505cc4b8340d304510d7226de96bafe9314
44
libraries_bom_version: 26.42.0
55
template_excludes:
66
- .github/*

java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java

Lines changed: 143 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,9 @@ public interface DiskOrBuilder
13711371
* Disk type as shown in `gcloud compute disk-types list`.
13721372
* For example, local SSD uses type "local-ssd".
13731373
* 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.
13751377
* </pre>
13761378
*
13771379
* <code>string type = 1;</code>
@@ -1386,7 +1388,9 @@ public interface DiskOrBuilder
13861388
* Disk type as shown in `gcloud compute disk-types list`.
13871389
* For example, local SSD uses type "local-ssd".
13881390
* 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.
13901394
* </pre>
13911395
*
13921396
* <code>string type = 1;</code>
@@ -1757,7 +1761,9 @@ public com.google.protobuf.ByteString getSnapshotBytes() {
17571761
* Disk type as shown in `gcloud compute disk-types list`.
17581762
* For example, local SSD uses type "local-ssd".
17591763
* 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.
17611767
* </pre>
17621768
*
17631769
* <code>string type = 1;</code>
@@ -1783,7 +1789,9 @@ public java.lang.String getType() {
17831789
* Disk type as shown in `gcloud compute disk-types list`.
17841790
* For example, local SSD uses type "local-ssd".
17851791
* 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.
17871795
* </pre>
17881796
*
17891797
* <code>string type = 1;</code>
@@ -2756,7 +2764,9 @@ public Builder setSnapshotBytes(com.google.protobuf.ByteString value) {
27562764
* Disk type as shown in `gcloud compute disk-types list`.
27572765
* For example, local SSD uses type "local-ssd".
27582766
* 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.
27602770
* </pre>
27612771
*
27622772
* <code>string type = 1;</code>
@@ -2781,7 +2791,9 @@ public java.lang.String getType() {
27812791
* Disk type as shown in `gcloud compute disk-types list`.
27822792
* For example, local SSD uses type "local-ssd".
27832793
* 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.
27852797
* </pre>
27862798
*
27872799
* <code>string type = 1;</code>
@@ -2806,7 +2818,9 @@ public com.google.protobuf.ByteString getTypeBytes() {
28062818
* Disk type as shown in `gcloud compute disk-types list`.
28072819
* For example, local SSD uses type "local-ssd".
28082820
* 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.
28102824
* </pre>
28112825
*
28122826
* <code>string type = 1;</code>
@@ -2830,7 +2844,9 @@ public Builder setType(java.lang.String value) {
28302844
* Disk type as shown in `gcloud compute disk-types list`.
28312845
* For example, local SSD uses type "local-ssd".
28322846
* 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.
28342850
* </pre>
28352851
*
28362852
* <code>string type = 1;</code>
@@ -2850,7 +2866,9 @@ public Builder clearType() {
28502866
* Disk type as shown in `gcloud compute disk-types list`.
28512867
* For example, local SSD uses type "local-ssd".
28522868
* 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.
28542872
* </pre>
28552873
*
28562874
* <code>string type = 1;</code>
@@ -4469,7 +4487,7 @@ public interface AcceleratorOrBuilder
44694487
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
44704488
*
44714489
* @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
44734491
* @return The installGpuDrivers.
44744492
*/
44754493
@java.lang.Deprecated
@@ -4640,7 +4658,7 @@ public long getCount() {
46404658
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
46414659
*
46424660
* @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
46444662
* @return The installGpuDrivers.
46454663
*/
46464664
@java.lang.Override
@@ -5302,7 +5320,7 @@ public Builder clearCount() {
53025320
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
53035321
*
53045322
* @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
53065324
* @return The installGpuDrivers.
53075325
*/
53085326
@java.lang.Override
@@ -5320,7 +5338,7 @@ public boolean getInstallGpuDrivers() {
53205338
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
53215339
*
53225340
* @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
53245342
* @param value The installGpuDrivers to set.
53255343
* @return This builder for chaining.
53265344
*/
@@ -5342,7 +5360,7 @@ public Builder setInstallGpuDrivers(boolean value) {
53425360
* <code>bool install_gpu_drivers = 3 [deprecated = true];</code>
53435361
*
53445362
* @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
53465364
* @return This builder for chaining.
53475365
*/
53485366
@java.lang.Deprecated
@@ -8525,6 +8543,20 @@ public interface InstancePolicyOrTemplateOrBuilder
85258543
*/
85268544
boolean getInstallGpuDrivers();
85278545

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+
85288560
com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate.PolicyTemplateCase
85298561
getPolicyTemplateCase();
85308562
}
@@ -8776,6 +8808,25 @@ public boolean getInstallGpuDrivers() {
87768808
return installGpuDrivers_;
87778809
}
87788810

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+
87798830
private byte memoizedIsInitialized = -1;
87808831

87818832
@java.lang.Override
@@ -8800,6 +8851,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
88008851
if (installGpuDrivers_ != false) {
88018852
output.writeBool(3, installGpuDrivers_);
88028853
}
8854+
if (installOpsAgent_ != false) {
8855+
output.writeBool(4, installOpsAgent_);
8856+
}
88038857
getUnknownFields().writeTo(output);
88048858
}
88058859

@@ -8820,6 +8874,9 @@ public int getSerializedSize() {
88208874
if (installGpuDrivers_ != false) {
88218875
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, installGpuDrivers_);
88228876
}
8877+
if (installOpsAgent_ != false) {
8878+
size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, installOpsAgent_);
8879+
}
88238880
size += getUnknownFields().getSerializedSize();
88248881
memoizedSize = size;
88258882
return size;
@@ -8837,6 +8894,7 @@ public boolean equals(final java.lang.Object obj) {
88378894
(com.google.cloud.batch.v1.AllocationPolicy.InstancePolicyOrTemplate) obj;
88388895

88398896
if (getInstallGpuDrivers() != other.getInstallGpuDrivers()) return false;
8897+
if (getInstallOpsAgent() != other.getInstallOpsAgent()) return false;
88408898
if (!getPolicyTemplateCase().equals(other.getPolicyTemplateCase())) return false;
88418899
switch (policyTemplateCase_) {
88428900
case 1:
@@ -8861,6 +8919,8 @@ public int hashCode() {
88618919
hash = (19 * hash) + getDescriptor().hashCode();
88628920
hash = (37 * hash) + INSTALL_GPU_DRIVERS_FIELD_NUMBER;
88638921
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());
88648924
switch (policyTemplateCase_) {
88658925
case 1:
88668926
hash = (37 * hash) + POLICY_FIELD_NUMBER;
@@ -9024,6 +9084,7 @@ public Builder clear() {
90249084
policyBuilder_.clear();
90259085
}
90269086
installGpuDrivers_ = false;
9087+
installOpsAgent_ = false;
90279088
policyTemplateCase_ = 0;
90289089
policyTemplate_ = null;
90299090
return this;
@@ -9069,6 +9130,9 @@ private void buildPartial0(
90699130
if (((from_bitField0_ & 0x00000004) != 0)) {
90709131
result.installGpuDrivers_ = installGpuDrivers_;
90719132
}
9133+
if (((from_bitField0_ & 0x00000008) != 0)) {
9134+
result.installOpsAgent_ = installOpsAgent_;
9135+
}
90729136
}
90739137

90749138
private void buildPartialOneofs(
@@ -9134,6 +9198,9 @@ public Builder mergeFrom(
91349198
if (other.getInstallGpuDrivers() != false) {
91359199
setInstallGpuDrivers(other.getInstallGpuDrivers());
91369200
}
9201+
if (other.getInstallOpsAgent() != false) {
9202+
setInstallOpsAgent(other.getInstallOpsAgent());
9203+
}
91379204
switch (other.getPolicyTemplateCase()) {
91389205
case POLICY:
91399206
{
@@ -9197,6 +9264,12 @@ public Builder mergeFrom(
91979264
bitField0_ |= 0x00000004;
91989265
break;
91999266
} // case 24
9267+
case 32:
9268+
{
9269+
installOpsAgent_ = input.readBool();
9270+
bitField0_ |= 0x00000008;
9271+
break;
9272+
} // case 32
92009273
default:
92019274
{
92029275
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -9669,6 +9742,62 @@ public Builder clearInstallGpuDrivers() {
96699742
return this;
96709743
}
96719744

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+
96729801
@java.lang.Override
96739802
public final Builder setUnknownFields(
96749803
final com.google.protobuf.UnknownFieldSet unknownFields) {

0 commit comments

Comments
 (0)