Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit a9830d9

Browse files
feat: [batch] add a CloudLoggingOption and use_generic_task_monitored_resource fields for users to opt out new batch monitored resource in cloud logging (#10056)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 582090179 Source-Link: https://togithub.com/googleapis/googleapis/commit/8690a75447e67f19cd3fb14368cab12af0c5bfd1 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/dc7262fbf316b83248cdbd4ce6c9f126a3d02b1a Copy-Tag: eyJwIjoiamF2YS1iYXRjaC8uT3dsQm90LnlhbWwiLCJoIjoiZGM3MjYyZmJmMzE2YjgzMjQ4Y2RiZDRjZTZjOWYxMjZhM2QwMmIxYSJ9
1 parent 404a852 commit a9830d9

8 files changed

Lines changed: 1177 additions & 206 deletions

File tree

java-batch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.26.0</version>
26+
<version>26.27.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>
@@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
201201
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
202202
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
203203
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg
204-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.29.0
204+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.30.0
205205
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
206206
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
207207
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-batch/google-cloud-batch/src/main/resources/META-INF/native-image/com.google.cloud.batch.v1alpha/reflect-config.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,24 @@
10071007
"allDeclaredClasses": true,
10081008
"allPublicClasses": true
10091009
},
1010+
{
1011+
"name": "com.google.cloud.batch.v1alpha.LogsPolicy$CloudLoggingOption",
1012+
"queryAllDeclaredConstructors": true,
1013+
"queryAllPublicConstructors": true,
1014+
"queryAllDeclaredMethods": true,
1015+
"allPublicMethods": true,
1016+
"allDeclaredClasses": true,
1017+
"allPublicClasses": true
1018+
},
1019+
{
1020+
"name": "com.google.cloud.batch.v1alpha.LogsPolicy$CloudLoggingOption$Builder",
1021+
"queryAllDeclaredConstructors": true,
1022+
"queryAllPublicConstructors": true,
1023+
"queryAllDeclaredMethods": true,
1024+
"allPublicMethods": true,
1025+
"allDeclaredClasses": true,
1026+
"allPublicClasses": true
1027+
},
10101028
{
10111029
"name": "com.google.cloud.batch.v1alpha.LogsPolicy$Destination",
10121030
"queryAllDeclaredConstructors": true,

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

Lines changed: 63 additions & 63 deletions
Large diffs are not rendered by default.

java-batch/proto-google-cloud-batch-v1alpha/src/main/java/com/google/cloud/batch/v1alpha/AllocationPolicyOrBuilder.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public interface AllocationPolicyOrBuilder
7070
* </code>
7171
*
7272
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See
73-
* google/cloud/batch/v1alpha/job.proto;l=560
73+
* google/cloud/batch/v1alpha/job.proto;l=574
7474
* @return Whether the instance field is set.
7575
*/
7676
@java.lang.Deprecated
@@ -87,7 +87,7 @@ public interface AllocationPolicyOrBuilder
8787
* </code>
8888
*
8989
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance is deprecated. See
90-
* google/cloud/batch/v1alpha/job.proto;l=560
90+
* google/cloud/batch/v1alpha/job.proto;l=574
9191
* @return The instance.
9292
*/
9393
@java.lang.Deprecated
@@ -187,7 +187,7 @@ public interface AllocationPolicyOrBuilder
187187
* <code>repeated string instance_templates = 3 [deprecated = true];</code>
188188
*
189189
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See
190-
* google/cloud/batch/v1alpha/job.proto;l=567
190+
* google/cloud/batch/v1alpha/job.proto;l=581
191191
* @return A list containing the instanceTemplates.
192192
*/
193193
@java.lang.Deprecated
@@ -202,7 +202,7 @@ public interface AllocationPolicyOrBuilder
202202
* <code>repeated string instance_templates = 3 [deprecated = true];</code>
203203
*
204204
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See
205-
* google/cloud/batch/v1alpha/job.proto;l=567
205+
* google/cloud/batch/v1alpha/job.proto;l=581
206206
* @return The count of instanceTemplates.
207207
*/
208208
@java.lang.Deprecated
@@ -217,7 +217,7 @@ public interface AllocationPolicyOrBuilder
217217
* <code>repeated string instance_templates = 3 [deprecated = true];</code>
218218
*
219219
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See
220-
* google/cloud/batch/v1alpha/job.proto;l=567
220+
* google/cloud/batch/v1alpha/job.proto;l=581
221221
* @param index The index of the element to return.
222222
* @return The instanceTemplates at the given index.
223223
*/
@@ -233,7 +233,7 @@ public interface AllocationPolicyOrBuilder
233233
* <code>repeated string instance_templates = 3 [deprecated = true];</code>
234234
*
235235
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.instance_templates is deprecated. See
236-
* google/cloud/batch/v1alpha/job.proto;l=567
236+
* google/cloud/batch/v1alpha/job.proto;l=581
237237
* @param index The index of the value to return.
238238
* @return The bytes of the instanceTemplates at the given index.
239239
*/
@@ -252,7 +252,7 @@ public interface AllocationPolicyOrBuilder
252252
* </code>
253253
*
254254
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
255-
* google/cloud/batch/v1alpha/job.proto;l=570
255+
* google/cloud/batch/v1alpha/job.proto;l=584
256256
* @return A list containing the provisioningModels.
257257
*/
258258
@java.lang.Deprecated
@@ -270,7 +270,7 @@ public interface AllocationPolicyOrBuilder
270270
* </code>
271271
*
272272
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
273-
* google/cloud/batch/v1alpha/job.proto;l=570
273+
* google/cloud/batch/v1alpha/job.proto;l=584
274274
* @return The count of provisioningModels.
275275
*/
276276
@java.lang.Deprecated
@@ -287,7 +287,7 @@ public interface AllocationPolicyOrBuilder
287287
* </code>
288288
*
289289
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
290-
* google/cloud/batch/v1alpha/job.proto;l=570
290+
* google/cloud/batch/v1alpha/job.proto;l=584
291291
* @param index The index of the element to return.
292292
* @return The provisioningModels at the given index.
293293
*/
@@ -306,7 +306,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin
306306
* </code>
307307
*
308308
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
309-
* google/cloud/batch/v1alpha/job.proto;l=570
309+
* google/cloud/batch/v1alpha/job.proto;l=584
310310
* @return A list containing the enum numeric values on the wire for provisioningModels.
311311
*/
312312
@java.lang.Deprecated
@@ -323,7 +323,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin
323323
* </code>
324324
*
325325
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.provisioning_models is deprecated. See
326-
* google/cloud/batch/v1alpha/job.proto;l=570
326+
* google/cloud/batch/v1alpha/job.proto;l=584
327327
* @param index The index of the value to return.
328328
* @return The enum numeric value on the wire of provisioningModels at the given index.
329329
*/
@@ -340,7 +340,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin
340340
* <code>string service_account_email = 5 [deprecated = true];</code>
341341
*
342342
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.
343-
* See google/cloud/batch/v1alpha/job.proto;l=573
343+
* See google/cloud/batch/v1alpha/job.proto;l=587
344344
* @return The serviceAccountEmail.
345345
*/
346346
@java.lang.Deprecated
@@ -355,7 +355,7 @@ com.google.cloud.batch.v1alpha.AllocationPolicy.ProvisioningModel getProvisionin
355355
* <code>string service_account_email = 5 [deprecated = true];</code>
356356
*
357357
* @deprecated google.cloud.batch.v1alpha.AllocationPolicy.service_account_email is deprecated.
358-
* See google/cloud/batch/v1alpha/job.proto;l=573
358+
* See google/cloud/batch/v1alpha/job.proto;l=587
359359
* @return The bytes for serviceAccountEmail.
360360
*/
361361
@java.lang.Deprecated

0 commit comments

Comments
 (0)