diff --git a/java-run/README.md b/java-run/README.md index dfb597cb8a0b..c6c2cd3c9d22 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.11.0 + 26.13.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.16.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java index 1131fd57fc22..dec415aae40b 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientHttpJsonTest.java @@ -110,6 +110,7 @@ public void getExecutionTest() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -179,6 +180,7 @@ public void getExecutionTest2() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -350,6 +352,7 @@ public void deleteExecutionTest() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -424,6 +427,7 @@ public void deleteExecutionTest2() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java index ddbd3fa1c5bb..0f4f9769ed45 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ExecutionsClientTest.java @@ -118,6 +118,7 @@ public void getExecutionTest() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockExecutions.addResponse(expectedResponse); @@ -181,6 +182,7 @@ public void getExecutionTest2() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockExecutions.addResponse(expectedResponse); @@ -332,6 +334,7 @@ public void deleteExecutionTest() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -403,6 +406,7 @@ public void deleteExecutionTest2() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java index 910d4c1ef081..ebb38b343958 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientHttpJsonTest.java @@ -117,6 +117,7 @@ public void createJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -192,6 +193,7 @@ public void createJobTest2() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -267,6 +269,7 @@ public void getJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -333,6 +336,7 @@ public void getJobTest2() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -499,6 +503,7 @@ public void updateJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -533,6 +538,7 @@ public void updateJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); @@ -586,6 +592,7 @@ public void updateJobExceptionTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); client.updateJobAsync(job).get(); @@ -620,6 +627,7 @@ public void deleteJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -691,6 +699,7 @@ public void deleteJobTest2() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -765,6 +774,7 @@ public void runJobTest() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -839,6 +849,7 @@ public void runJobTest2() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java index 438e9b9cf416..440122aa28e2 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/JobsClientTest.java @@ -124,6 +124,7 @@ public void createJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -198,6 +199,7 @@ public void createJobTest2() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -272,6 +274,7 @@ public void getJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockJobs.addResponse(expectedResponse); @@ -332,6 +335,7 @@ public void getJobTest2() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockJobs.addResponse(expectedResponse); @@ -480,6 +484,7 @@ public void updateJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -548,6 +553,7 @@ public void deleteJobTest() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -616,6 +622,7 @@ public void deleteJobTest2() throws Exception { .setExecutionCount(1646136616) .setLatestCreatedExecution(ExecutionReference.newBuilder().build()) .setReconciling(true) + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -687,6 +694,7 @@ public void runJobTest() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -758,6 +766,7 @@ public void runJobTest2() throws Exception { .setCancelledCount(1921113249) .setRetriedCount(-1654679545) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java index 3d0b27b70e4c..ce844e9fbddf 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientHttpJsonTest.java @@ -113,6 +113,8 @@ public void getRevisionTest() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -184,6 +186,8 @@ public void getRevisionTest2() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -357,6 +361,8 @@ public void deleteRevisionTest() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -433,6 +439,8 @@ public void deleteRevisionTest2() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java index 96804a75f6f7..c7b1685ba836 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/RevisionsClientTest.java @@ -121,6 +121,8 @@ public void getRevisionTest() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); mockRevisions.addResponse(expectedResponse); @@ -186,6 +188,8 @@ public void getRevisionTest2() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); mockRevisions.addResponse(expectedResponse); @@ -339,6 +343,8 @@ public void deleteRevisionTest() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -412,6 +418,8 @@ public void deleteRevisionTest2() throws Exception { .addAllConditions(new ArrayList()) .setObservedGeneration(900833007) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) + .setSessionAffinity(true) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java index 2806f804e848..02c03a1d77e1 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientHttpJsonTest.java @@ -123,6 +123,7 @@ public void createServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -205,6 +206,7 @@ public void createServiceTest2() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -287,6 +289,7 @@ public void getServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -360,6 +363,7 @@ public void getServiceTest2() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -533,6 +537,7 @@ public void updateServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -574,6 +579,7 @@ public void updateServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -634,6 +640,7 @@ public void updateServiceExceptionTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -675,6 +682,7 @@ public void deleteServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -753,6 +761,7 @@ public void deleteServiceTest2() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java index 53cba8d23e07..a7e3f58da40e 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/ServicesClientTest.java @@ -131,6 +131,7 @@ public void createServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -212,6 +213,7 @@ public void createServiceTest2() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -293,6 +295,7 @@ public void getServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -360,6 +363,7 @@ public void getServiceTest2() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -515,6 +519,7 @@ public void updateServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -590,6 +595,7 @@ public void deleteServiceTest() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); @@ -665,6 +671,7 @@ public void deleteServiceTest2() throws Exception { RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") + .setSatisfiesPzs(true) .setReconciling(true) .setEtag("etag3123477") .build(); diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java index 9bb7f7b5c908..8f7f40ca2d0c 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientHttpJsonTest.java @@ -112,6 +112,7 @@ public void getTaskTest() throws Exception { .setEncryptionKey("encryptionKey-36224036") .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -186,6 +187,7 @@ public void getTaskTest2() throws Exception { .setEncryptionKey("encryptionKey-36224036") .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java index 3b38aca52418..1ed0754b2444 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/TasksClientTest.java @@ -118,6 +118,7 @@ public void getTaskTest() throws Exception { .setEncryptionKey("encryptionKey-36224036") .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockTasks.addResponse(expectedResponse); @@ -186,6 +187,7 @@ public void getTaskTest2() throws Exception { .setEncryptionKey("encryptionKey-36224036") .setVpcAccess(VpcAccess.newBuilder().build()) .setLogUri("logUri-1097354360") + .setSatisfiesPzs(true) .setEtag("etag3123477") .build(); mockTasks.addResponse(expectedResponse); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java index c5a9284ec344..ec58dc8d3481 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Condition.java @@ -1313,6 +1313,16 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { * CANCELLED = 3; */ CANCELLED(3), + /** + * + * + *
+     * The execution is in the process of being cancelled.
+     * 
+ * + * CANCELLING = 4; + */ + CANCELLING(4), UNRECOGNIZED(-1), ; @@ -1357,6 +1367,16 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { * CANCELLED = 3; */ public static final int CANCELLED_VALUE = 3; + /** + * + * + *
+     * The execution is in the process of being cancelled.
+     * 
+ * + * CANCELLING = 4; + */ + public static final int CANCELLING_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -1390,6 +1410,8 @@ public static ExecutionReason forNumber(int value) { return NON_ZERO_EXIT_CODE; case 3: return CANCELLED; + case 4: + return CANCELLING; default: return null; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java index 9c16cf48cecf..15a9ec1e3389 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ConditionProto.java @@ -42,7 +42,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n#google/cloud/run/v2/condition.proto\022\023g" + "oogle.cloud.run.v2\032\037google/protobuf/time" - + "stamp.proto\"\377\013\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + + "stamp.proto\"\220\014\n\tCondition\022\014\n\004type\030\001 \001(\t\022" + "3\n\005state\030\002 \001(\0162$.google.cloud.run.v2.Con" + "dition.State\022\017\n\007message\030\003 \001(\t\0228\n\024last_tr" + "ansition_time\030\004 \001(\0132\032.google.protobuf.Ti" @@ -77,13 +77,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ANCES_NOT_PROVISIONED\020\010\022!\n\035ACTIVE_REVISI" + "ON_LIMIT_REACHED\020\t\022\021\n\rNO_DEPLOYMENT\020\n\022\030\n" + "\024HEALTH_CHECK_SKIPPED\020\013\022\031\n\025MIN_INSTANCES" - + "_WARMING\020\014\"~\n\017ExecutionReason\022\036\n\032EXECUTI" - + "ON_REASON_UNDEFINED\020\000\022$\n JOB_STATUS_SERV" - + "ICE_POLLING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_COD" - + "E\020\002\022\r\n\tCANCELLED\020\003B\t\n\007reasonsBV\n\027com.goo" - + "gle.cloud.run.v2B\016ConditionProtoP\001Z)clou" - + "d.google.com/go/run/apiv2/runpb;runpbb\006p" - + "roto3" + + "_WARMING\020\014\"\216\001\n\017ExecutionReason\022\036\n\032EXECUT" + + "ION_REASON_UNDEFINED\020\000\022$\n JOB_STATUS_SER" + + "VICE_POLLING_ERROR\020\001\022\026\n\022NON_ZERO_EXIT_CO" + + "DE\020\002\022\r\n\tCANCELLED\020\003\022\016\n\nCANCELLING\020\004B\t\n\007r" + + "easonsBV\n\027com.google.cloud.run.v2B\016Condi" + + "tionProtoP\001Z)cloud.google.com/go/run/api" + + "v2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java index aa0e7373f738..5fb319ec95b4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Container.java @@ -139,8 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Required. Name of the container image in Dockerhub, Google Artifact
    * Registry, or Google Container Registry. If the host is not provided,
-   * Dockerhub is assumed. More info:
-   * https://kubernetes.io/docs/concepts/containers/images
+   * Dockerhub is assumed.
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -165,8 +164,7 @@ public java.lang.String getImage() { *
    * Required. Name of the container image in Dockerhub, Google Artifact
    * Registry, or Google Container Registry. If the host is not provided,
-   * Dockerhub is assumed. More info:
-   * https://kubernetes.io/docs/concepts/containers/images
+   * Dockerhub is assumed.
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -196,13 +194,6 @@ public com.google.protobuf.ByteString getImageBytes() { *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -218,13 +209,6 @@ public com.google.protobuf.ProtocolStringList getCommandList() { *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -240,13 +224,6 @@ public int getCommandCount() { *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -263,13 +240,6 @@ public java.lang.String getCommand(int index) { *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -291,13 +261,6 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -313,13 +276,6 @@ public com.google.protobuf.ProtocolStringList getArgsList() { *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -335,13 +291,6 @@ public int getArgsCount() { *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -358,13 +307,6 @@ public java.lang.String getArgs(int index) { *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -453,8 +395,6 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) { * *
    * Compute Resource requirements by this container.
-   * More info:
-   * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -470,8 +410,6 @@ public boolean hasResources() { * *
    * Compute Resource requirements by this container.
-   * More info:
-   * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -489,8 +427,6 @@ public com.google.cloud.run.v2.ResourceRequirements getResources() { * *
    * Compute Resource requirements by this container.
-   * More info:
-   * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -727,8 +663,6 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -745,8 +679,6 @@ public boolean hasLivenessProbe() { *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -765,8 +697,6 @@ public com.google.cloud.run.v2.Probe getLivenessProbe() { *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -788,8 +718,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -808,8 +736,6 @@ public boolean hasStartupProbe() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -830,8 +756,6 @@ public com.google.cloud.run.v2.Probe getStartupProbe() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -1725,8 +1649,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Required. Name of the container image in Dockerhub, Google Artifact
      * Registry, or Google Container Registry. If the host is not provided,
-     * Dockerhub is assumed. More info:
-     * https://kubernetes.io/docs/concepts/containers/images
+     * Dockerhub is assumed.
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1750,8 +1673,7 @@ public java.lang.String getImage() { *
      * Required. Name of the container image in Dockerhub, Google Artifact
      * Registry, or Google Container Registry. If the host is not provided,
-     * Dockerhub is assumed. More info:
-     * https://kubernetes.io/docs/concepts/containers/images
+     * Dockerhub is assumed.
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1775,8 +1697,7 @@ public com.google.protobuf.ByteString getImageBytes() { *
      * Required. Name of the container image in Dockerhub, Google Artifact
      * Registry, or Google Container Registry. If the host is not provided,
-     * Dockerhub is assumed. More info:
-     * https://kubernetes.io/docs/concepts/containers/images
+     * Dockerhub is assumed.
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1799,8 +1720,7 @@ public Builder setImage(java.lang.String value) { *
      * Required. Name of the container image in Dockerhub, Google Artifact
      * Registry, or Google Container Registry. If the host is not provided,
-     * Dockerhub is assumed. More info:
-     * https://kubernetes.io/docs/concepts/containers/images
+     * Dockerhub is assumed.
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1819,8 +1739,7 @@ public Builder clearImage() { *
      * Required. Name of the container image in Dockerhub, Google Artifact
      * Registry, or Google Container Registry. If the host is not provided,
-     * Dockerhub is assumed. More info:
-     * https://kubernetes.io/docs/concepts/containers/images
+     * Dockerhub is assumed.
      * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1854,13 +1773,6 @@ private void ensureCommandIsMutable() { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -1876,13 +1788,6 @@ public com.google.protobuf.ProtocolStringList getCommandList() { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -1898,13 +1803,6 @@ public int getCommandCount() { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -1921,13 +1819,6 @@ public java.lang.String getCommand(int index) { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -1944,13 +1835,6 @@ public com.google.protobuf.ByteString getCommandBytes(int index) { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -1974,13 +1858,6 @@ public Builder setCommand(int index, java.lang.String value) { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -2003,13 +1880,6 @@ public Builder addCommand(java.lang.String value) { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -2029,13 +1899,6 @@ public Builder addAllCommand(java.lang.Iterable values) { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -2054,13 +1917,6 @@ public Builder clearCommand() { *
      * Entrypoint array. Not executed within a shell.
      * The docker image's ENTRYPOINT is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string command = 3; @@ -2094,13 +1950,6 @@ private void ensureArgsIsMutable() { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2116,13 +1965,6 @@ public com.google.protobuf.ProtocolStringList getArgsList() { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2138,13 +1980,6 @@ public int getArgsCount() { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2161,13 +1996,6 @@ public java.lang.String getArgs(int index) { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2184,13 +2012,6 @@ public com.google.protobuf.ByteString getArgsBytes(int index) { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2214,13 +2035,6 @@ public Builder setArgs(int index, java.lang.String value) { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2243,13 +2057,6 @@ public Builder addArgs(java.lang.String value) { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2269,13 +2076,6 @@ public Builder addAllArgs(java.lang.Iterable values) { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2294,13 +2094,6 @@ public Builder clearArgs() { *
      * Arguments to the entrypoint.
      * The docker image's CMD is used if this is not provided.
-     * Variable references $(VAR_NAME) are expanded using the container's
-     * environment. If a variable cannot be resolved, the reference in the input
-     * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-     * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-     * regardless of whether the variable exists or not.
-     * More info:
-     * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
      * 
* * repeated string args = 4; @@ -2672,8 +2465,6 @@ public java.util.List getEnvBuilderList( * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2688,8 +2479,6 @@ public boolean hasResources() { * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2710,8 +2499,6 @@ public com.google.cloud.run.v2.ResourceRequirements getResources() { * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2734,8 +2521,6 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value) * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2756,8 +2541,6 @@ public Builder setResources( * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2783,8 +2566,6 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2804,8 +2585,6 @@ public Builder clearResources() { * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2820,8 +2599,6 @@ public com.google.cloud.run.v2.ResourceRequirements.Builder getResourcesBuilder( * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -2840,8 +2617,6 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild * *
      * Compute Resource requirements by this container.
-     * More info:
-     * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
      * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -3760,8 +3535,6 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3777,8 +3550,6 @@ public boolean hasLivenessProbe() { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3800,8 +3571,6 @@ public com.google.cloud.run.v2.Probe getLivenessProbe() { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3825,8 +3594,6 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe value) { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3847,8 +3614,6 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe.Builder builderFor *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3875,8 +3640,6 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3897,8 +3660,6 @@ public Builder clearLivenessProbe() { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3914,8 +3675,6 @@ public com.google.cloud.run.v2.Probe.Builder getLivenessProbeBuilder() { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3935,8 +3694,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() { *
      * Periodic probe of container liveness.
      * Container will be restarted if the probe fails.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
      * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -3972,8 +3729,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -3991,8 +3746,6 @@ public boolean hasStartupProbe() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4016,8 +3769,6 @@ public com.google.cloud.run.v2.Probe getStartupProbe() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4043,8 +3794,6 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe value) { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4067,8 +3816,6 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe.Builder builderForV * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4097,8 +3844,6 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4121,8 +3866,6 @@ public Builder clearStartupProbe() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4140,8 +3883,6 @@ public com.google.cloud.run.v2.Probe.Builder getStartupProbeBuilder() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -4163,8 +3904,6 @@ public com.google.cloud.run.v2.ProbeOrBuilder getStartupProbeOrBuilder() { * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java index 9ec579ee0601..3bb85e6c1747 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ContainerOrBuilder.java @@ -54,8 +54,7 @@ public interface ContainerOrBuilder *
    * Required. Name of the container image in Dockerhub, Google Artifact
    * Registry, or Google Container Registry. If the host is not provided,
-   * Dockerhub is assumed. More info:
-   * https://kubernetes.io/docs/concepts/containers/images
+   * Dockerhub is assumed.
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -69,8 +68,7 @@ public interface ContainerOrBuilder *
    * Required. Name of the container image in Dockerhub, Google Artifact
    * Registry, or Google Container Registry. If the host is not provided,
-   * Dockerhub is assumed. More info:
-   * https://kubernetes.io/docs/concepts/containers/images
+   * Dockerhub is assumed.
    * 
* * string image = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -85,13 +83,6 @@ public interface ContainerOrBuilder *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -105,13 +96,6 @@ public interface ContainerOrBuilder *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -125,13 +109,6 @@ public interface ContainerOrBuilder *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -146,13 +123,6 @@ public interface ContainerOrBuilder *
    * Entrypoint array. Not executed within a shell.
    * The docker image's ENTRYPOINT is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string command = 3; @@ -168,13 +138,6 @@ public interface ContainerOrBuilder *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -188,13 +151,6 @@ public interface ContainerOrBuilder *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -208,13 +164,6 @@ public interface ContainerOrBuilder *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -229,13 +178,6 @@ public interface ContainerOrBuilder *
    * Arguments to the entrypoint.
    * The docker image's CMD is used if this is not provided.
-   * Variable references $(VAR_NAME) are expanded using the container's
-   * environment. If a variable cannot be resolved, the reference in the input
-   * string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
-   * double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
-   * regardless of whether the variable exists or not.
-   * More info:
-   * https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
    * 
* * repeated string args = 4; @@ -301,8 +243,6 @@ public interface ContainerOrBuilder * *
    * Compute Resource requirements by this container.
-   * More info:
-   * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -315,8 +255,6 @@ public interface ContainerOrBuilder * *
    * Compute Resource requirements by this container.
-   * More info:
-   * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -329,8 +267,6 @@ public interface ContainerOrBuilder * *
    * Compute Resource requirements by this container.
-   * More info:
-   * https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
    * 
* * .google.cloud.run.v2.ResourceRequirements resources = 6; @@ -495,8 +431,6 @@ public interface ContainerOrBuilder *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -510,8 +444,6 @@ public interface ContainerOrBuilder *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -525,8 +457,6 @@ public interface ContainerOrBuilder *
    * Periodic probe of container liveness.
    * Container will be restarted if the probe fails.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
    * 
* * .google.cloud.run.v2.Probe liveness_probe = 10; @@ -541,8 +471,6 @@ public interface ContainerOrBuilder * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -558,8 +486,6 @@ public interface ContainerOrBuilder * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; @@ -575,8 +501,6 @@ public interface ContainerOrBuilder * All other probes are disabled if a startup probe is provided, until it * succeeds. Container will not be added to service endpoints if the probe * fails. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * * * .google.cloud.run.v2.Probe startup_probe = 11; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java index 64a2bac7c62e..dedb927933ef 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Execution.java @@ -243,15 +243,15 @@ public int getLabelsCount() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -270,15 +270,15 @@ public java.util.Map getLabels() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -288,15 +288,15 @@ public java.util.Map getLabelsMap() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -313,15 +313,15 @@ public java.util.Map getLabelsMap() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -366,10 +366,14 @@ public int getAnnotationsCount() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -388,10 +392,14 @@ public java.util.Map getAnnotations() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -401,10 +409,14 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -421,10 +433,14 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -769,10 +785,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 11; @@ -787,10 +807,14 @@ public int getLaunchStageValue() { * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 11; @@ -868,8 +892,7 @@ public com.google.protobuf.ByteString getJobBytes() { * should run at any given time. Must be <= task_count. The actual number of * tasks running in steady state will be less than this number when * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when - * the work left to do is less than max parallelism. More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * the work left to do is less than max parallelism. * * * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -890,8 +913,6 @@ public int getParallelism() { * Output only. Specifies the desired number of tasks the execution should * run. Setting to 1 means that parallelism is limited to 1 and the success of * that task signals the success of the execution. - * More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * * * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1233,6 +1254,24 @@ public com.google.protobuf.ByteString getLogUriBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 27; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1373,6 +1412,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 26, logUri_); } + if (satisfiesPzs_ != false) { + output.writeBool(27, satisfiesPzs_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -1474,6 +1516,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, logUri_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, satisfiesPzs_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -1538,6 +1583,7 @@ public boolean equals(final java.lang.Object obj) { if (getCancelledCount() != other.getCancelledCount()) return false; if (getRetriedCount() != other.getRetriedCount()) return false; if (!getLogUri().equals(other.getLogUri())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1620,6 +1666,8 @@ public int hashCode() { hash = (53 * hash) + getRetriedCount(); hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1845,6 +1893,7 @@ public Builder clear() { cancelledCount_ = 0; retriedCount_ = 0; logUri_ = ""; + satisfiesPzs_ = false; etag_ = ""; return this; } @@ -1970,6 +2019,9 @@ private void buildPartial0(com.google.cloud.run.v2.Execution result) { result.logUri_ = logUri_; } if (((from_bitField0_ & 0x02000000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { result.etag_ = etag_; } } @@ -2124,9 +2176,12 @@ public Builder mergeFrom(com.google.cloud.run.v2.Execution other) { bitField0_ |= 0x01000000; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2324,10 +2379,16 @@ public Builder mergeFrom( bitField0_ |= 0x01000000; break; } // case 210 + case 216: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 216 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; break; } // case 794 default: @@ -2656,15 +2717,16 @@ public int getLabelsCount() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -2683,15 +2745,16 @@ public java.util.Map getLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -2701,15 +2764,16 @@ public java.util.Map getLabelsMap() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -2726,15 +2790,16 @@ public java.util.Map getLabelsMap() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -2757,15 +2822,16 @@ public Builder clearLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -2784,15 +2850,16 @@ public java.util.Map getMutableLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2809,15 +2876,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -2857,10 +2925,14 @@ public int getAnnotationsCount() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -2879,10 +2951,14 @@ public java.util.Map getAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -2892,10 +2968,14 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -2912,10 +2992,14 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -2938,10 +3022,14 @@ public Builder clearAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { @@ -2960,10 +3048,14 @@ public java.util.Map getMutableAnnotations() * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2980,10 +3072,14 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); @@ -4270,10 +4366,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 11; @@ -4288,10 +4388,14 @@ public int getLaunchStageValue() { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 11; @@ -4309,10 +4413,14 @@ public Builder setLaunchStageValue(int value) { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 11; @@ -4328,10 +4436,14 @@ public com.google.api.LaunchStage getLaunchStage() { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 11; @@ -4352,10 +4464,14 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 11; @@ -4494,8 +4610,7 @@ public Builder setJobBytes(com.google.protobuf.ByteString value) { * should run at any given time. Must be <= task_count. The actual number of * tasks running in steady state will be less than this number when * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when - * the work left to do is less than max parallelism. More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * the work left to do is less than max parallelism. * * * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4514,8 +4629,7 @@ public int getParallelism() { * should run at any given time. Must be <= task_count. The actual number of * tasks running in steady state will be less than this number when * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when - * the work left to do is less than max parallelism. More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * the work left to do is less than max parallelism. * * * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4538,8 +4652,7 @@ public Builder setParallelism(int value) { * should run at any given time. Must be <= task_count. The actual number of * tasks running in steady state will be less than this number when * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when - * the work left to do is less than max parallelism. More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * the work left to do is less than max parallelism. * * * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4561,8 +4674,6 @@ public Builder clearParallelism() { * Output only. Specifies the desired number of tasks the execution should * run. Setting to 1 means that parallelism is limited to 1 and the success of * that task signals the success of the execution. - * More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * * * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4580,8 +4691,6 @@ public int getTaskCount() { * Output only. Specifies the desired number of tasks the execution should * run. Setting to 1 means that parallelism is limited to 1 and the success of * that task signals the success of the execution. - * More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * * * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4603,8 +4712,6 @@ public Builder setTaskCount(int value) { * Output only. Specifies the desired number of tasks the execution should * run. Setting to 1 means that parallelism is limited to 1 and the success of * that task signals the success of the execution. - * More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * * * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5733,6 +5840,59 @@ public Builder setLogUriBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x02000000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + private java.lang.Object etag_ = ""; /** * @@ -5798,7 +5958,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -5816,7 +5976,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); onChanged(); return this; } @@ -5839,7 +5999,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java index e93d30a36744..b9a3ad5f1f8d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionOrBuilder.java @@ -95,30 +95,30 @@ public interface ExecutionOrBuilder * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getLabelsCount(); /** * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -128,30 +128,30 @@ public interface ExecutionOrBuilder * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map getLabelsMap(); /** * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -162,15 +162,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -178,20 +178,28 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getAnnotationsCount(); /** * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ boolean containsAnnotations(java.lang.String key); /** Use {@link #getAnnotationsMap()} instead. */ @@ -201,20 +209,28 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map getAnnotationsMap(); /** * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -225,10 +241,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.lang.String getAnnotationsOrThrow(java.lang.String key); @@ -491,10 +511,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 11; @@ -506,10 +530,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 11; @@ -555,8 +583,7 @@ java.lang.String getAnnotationsOrDefault( * should run at any given time. Must be <= task_count. The actual number of * tasks running in steady state will be less than this number when * ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when - * the work left to do is less than max parallelism. More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * the work left to do is less than max parallelism. * * * int32 parallelism = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -572,8 +599,6 @@ java.lang.String getAnnotationsOrDefault( * Output only. Specifies the desired number of tasks the execution should * run. Setting to 1 means that parallelism is limited to 1 and the success of * that task signals the success of the execution. - * More info: - * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * * * int32 task_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -816,6 +841,19 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getLogUriBytes(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java index 2b7199a2799f..b13e01144451 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionProto.java @@ -83,56 +83,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cution\022\027\n\017next_page_token\030\002 \001(\t\"q\n\026Delet" + "eExecutionRequest\0222\n\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034run.googleapis.com/Execution\022\025\n\rvalidat" - + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\334\t\n\tExecution" + + "e_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\202\n\n\tExecution" + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\027\n" - + "\ngeneration\030\003 \001(\003B\003\340A\003\022:\n\006labels\030\004 \003(\0132*" + + "\ngeneration\030\003 \001(\003B\003\340A\003\022?\n\006labels\030\004 \003(\0132*" + ".google.cloud.run.v2.Execution.LabelsEnt" - + "ry\022D\n\013annotations\030\005 \003(\0132/.google.cloud.r" - + "un.v2.Execution.AnnotationsEntry\0224\n\013crea" - + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0223\n\nstart_time\030\026 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0228\n\017completion_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\010 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013delete_time\030\t \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013expire_time" - + "\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "-\n\014launch_stage\030\013 \001(\0162\027.google.api.Launc" - + "hStage\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026run.googlea" - + "pis.com/Job\022\030\n\013parallelism\030\r \001(\005B\003\340A\003\022\027\n" - + "\ntask_count\030\016 \001(\005B\003\340A\003\0228\n\010template\030\017 \001(\013" - + "2!.google.cloud.run.v2.TaskTemplateB\003\340A\003" - + "\022\030\n\013reconciling\030\020 \001(\010B\003\340A\003\0227\n\nconditions" - + "\030\021 \003(\0132\036.google.cloud.run.v2.ConditionB\003" - + "\340A\003\022 \n\023observed_generation\030\022 \001(\003B\003\340A\003\022\032\n" - + "\rrunning_count\030\023 \001(\005B\003\340A\003\022\034\n\017succeeded_c" - + "ount\030\024 \001(\005B\003\340A\003\022\031\n\014failed_count\030\025 \001(\005B\003\340" - + "A\003\022\034\n\017cancelled_count\030\030 \001(\005B\003\340A\003\022\032\n\rretr" - + "ied_count\030\031 \001(\005B\003\340A\003\022\024\n\007log_uri\030\032 \001(\tB\003\340" - + "A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotati" - + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":o\352Al\n\034run.googleapis.com/Execution\022Ipro" - + "jects/{project}/locations/{location}/job" - + "s/{job}/executions/{execution}R\001\0012\350\004\n\nEx" - + "ecutions\022\236\001\n\014GetExecution\022(.google.cloud" - + ".run.v2.GetExecutionRequest\032\036.google.clo" - + "ud.run.v2.Execution\"D\202\323\344\223\0027\0225/v2/{name=p" - + "rojects/*/locations/*/jobs/*/executions/" - + "*}\332A\004name\022\261\001\n\016ListExecutions\022*.google.cl" - + "oud.run.v2.ListExecutionsRequest\032+.googl" - + "e.cloud.run.v2.ListExecutionsResponse\"F\202" - + "\323\344\223\0027\0225/v2/{parent=projects/*/locations/" - + "*/jobs/*}/executions\332A\006parent\022\274\001\n\017Delete" - + "Execution\022+.google.cloud.run.v2.DeleteEx" - + "ecutionRequest\032\035.google.longrunning.Oper" - + "ation\"]\202\323\344\223\0027*5/v2/{name=projects/*/loca" - + "tions/*/jobs/*/executions/*}\332A\004name\312A\026\n\t" - + "Execution\022\tExecution\032F\312A\022run.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformBV\n\027com.google.cloud.run.v2B" - + "\016ExecutionProtoP\001Z)cloud.google.com/go/r" - + "un/apiv2/runpb;runpbb\006proto3" + + "ryB\003\340A\003\022I\n\013annotations\030\005 \003(\0132/.google.cl" + + "oud.run.v2.Execution.AnnotationsEntryB\003\340" + + "A\003\0224\n\013create_time\030\006 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0223\n\nstart_time\030\026 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0228\n\017complet" + + "ion_time\030\007 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\t \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013e" + + "xpire_time\030\n \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022-\n\014launch_stage\030\013 \001(\0162\027.google" + + ".api.LaunchStage\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026r" + + "un.googleapis.com/Job\022\030\n\013parallelism\030\r \001" + + "(\005B\003\340A\003\022\027\n\ntask_count\030\016 \001(\005B\003\340A\003\0228\n\010temp" + + "late\030\017 \001(\0132!.google.cloud.run.v2.TaskTem" + + "plateB\003\340A\003\022\030\n\013reconciling\030\020 \001(\010B\003\340A\003\0227\n\n" + + "conditions\030\021 \003(\0132\036.google.cloud.run.v2.C" + + "onditionB\003\340A\003\022 \n\023observed_generation\030\022 \001" + + "(\003B\003\340A\003\022\032\n\rrunning_count\030\023 \001(\005B\003\340A\003\022\034\n\017s" + + "ucceeded_count\030\024 \001(\005B\003\340A\003\022\031\n\014failed_coun" + + "t\030\025 \001(\005B\003\340A\003\022\034\n\017cancelled_count\030\030 \001(\005B\003\340" + + "A\003\022\032\n\rretried_count\030\031 \001(\005B\003\340A\003\022\024\n\007log_ur" + + "i\030\032 \001(\tB\003\340A\003\022\032\n\rsatisfies_pzs\030\033 \001(\010B\003\340A\003" + + "\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:o" + + "\352Al\n\034run.googleapis.com/Execution\022Iproje" + + "cts/{project}/locations/{location}/jobs/" + + "{job}/executions/{execution}R\001\0012\350\004\n\nExec" + + "utions\022\236\001\n\014GetExecution\022(.google.cloud.r" + + "un.v2.GetExecutionRequest\032\036.google.cloud" + + ".run.v2.Execution\"D\202\323\344\223\0027\0225/v2/{name=pro" + + "jects/*/locations/*/jobs/*/executions/*}" + + "\332A\004name\022\261\001\n\016ListExecutions\022*.google.clou" + + "d.run.v2.ListExecutionsRequest\032+.google." + + "cloud.run.v2.ListExecutionsResponse\"F\202\323\344" + + "\223\0027\0225/v2/{parent=projects/*/locations/*/" + + "jobs/*}/executions\332A\006parent\022\274\001\n\017DeleteEx" + + "ecution\022+.google.cloud.run.v2.DeleteExec" + + "utionRequest\032\035.google.longrunning.Operat" + + "ion\"]\202\323\344\223\0027*5/v2/{name=projects/*/locati" + + "ons/*/jobs/*/executions/*}\332A\004name\312A\026\n\tEx" + + "ecution\022\tExecution\032F\312A\022run.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformBV\n\027com.google.cloud.run.v2B\016E" + + "xecutionProtoP\001Z)cloud.google.com/go/run" + + "/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -211,6 +212,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CancelledCount", "RetriedCount", "LogUri", + "SatisfiesPzs", "Etag", }); internal_static_google_cloud_run_v2_Execution_LabelsEntry_descriptor = diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java index 4a551f41dc86..25d9f90c0f98 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplate.java @@ -109,7 +109,13 @@ public int getLabelsCount() { * * *
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -135,7 +141,13 @@ public java.util.Map getLabels() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -152,7 +164,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -176,7 +194,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -228,11 +252,15 @@ public int getAnnotationsCount() {
    *
    *
    * 
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -254,11 +282,15 @@ public java.util.Map getAnnotations() { * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -271,11 +303,15 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -295,11 +331,15 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -348,9 +388,7 @@ public int getParallelism() { *
    * Specifies the desired number of tasks the execution should run.
    * Setting to 1 means that parallelism is limited to 1 and the success of
-   * that task signals the success of the execution.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * that task signals the success of the execution. Defaults to 1.
    * 
* * int32 task_count = 4; @@ -936,7 +974,13 @@ public int getLabelsCount() { * * *
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -962,7 +1006,13 @@ public java.util.Map getLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -979,7 +1029,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1003,7 +1059,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1033,7 +1095,13 @@ public Builder clearLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1059,7 +1127,13 @@ public java.util.Map getMutableLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1083,7 +1157,13 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1130,11 +1210,15 @@ public int getAnnotationsCount() {
      *
      *
      * 
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1156,11 +1240,15 @@ public java.util.Map getAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1173,11 +1261,15 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1197,11 +1289,15 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1227,11 +1323,15 @@ public Builder clearAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1253,11 +1353,15 @@ public java.util.Map getMutableAnnotations() * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1277,11 +1381,15 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 ExecutionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 2; @@ -1370,9 +1478,7 @@ public Builder clearParallelism() { *
      * Specifies the desired number of tasks the execution should run.
      * Setting to 1 means that parallelism is limited to 1 and the success of
-     * that task signals the success of the execution.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * that task signals the success of the execution. Defaults to 1.
      * 
* * int32 task_count = 4; @@ -1389,9 +1495,7 @@ public int getTaskCount() { *
      * Specifies the desired number of tasks the execution should run.
      * Setting to 1 means that parallelism is limited to 1 and the success of
-     * that task signals the success of the execution.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * that task signals the success of the execution. Defaults to 1.
      * 
* * int32 task_count = 4; @@ -1412,9 +1516,7 @@ public Builder setTaskCount(int value) { *
      * Specifies the desired number of tasks the execution should run.
      * Setting to 1 means that parallelism is limited to 1 and the success of
-     * that task signals the success of the execution.
-     * More info:
-     * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+     * that task signals the success of the execution. Defaults to 1.
      * 
* * int32 task_count = 4; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java index 2303f6a12cfd..e9271b3662fe 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ExecutionTemplateOrBuilder.java @@ -27,7 +27,13 @@ public interface ExecutionTemplateOrBuilder * * *
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -41,7 +47,13 @@ public interface ExecutionTemplateOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -58,7 +70,13 @@ public interface ExecutionTemplateOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -72,7 +90,13 @@ public interface ExecutionTemplateOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -90,7 +114,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -105,11 +135,15 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -119,11 +153,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -136,11 +174,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -150,11 +192,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -168,11 +214,15 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 ExecutionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 2; @@ -204,9 +254,7 @@ java.lang.String getAnnotationsOrDefault( *
    * Specifies the desired number of tasks the execution should run.
    * Setting to 1 means that parallelism is limited to 1 and the success of
-   * that task signals the success of the execution.
-   * More info:
-   * https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
+   * that task signals the success of the execution. Defaults to 1.
    * 
* * int32 task_count = 4; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java index 0d8683ab4d19..010a758e8814 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCAction.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Port number of the gRPC service. Number must be in the range 1 to 65535.
-   * If not specified, defaults to 8080.
+   * If not specified, defaults to the exposed port of the container, which is
+   * the value of container.ports[0].containerPort.
    * 
* * int32 port = 1; @@ -507,7 +508,8 @@ public Builder mergeFrom( * *
      * Port number of the gRPC service. Number must be in the range 1 to 65535.
-     * If not specified, defaults to 8080.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
      * 
* * int32 port = 1; @@ -523,7 +525,8 @@ public int getPort() { * *
      * Port number of the gRPC service. Number must be in the range 1 to 65535.
-     * If not specified, defaults to 8080.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
      * 
* * int32 port = 1; @@ -543,7 +546,8 @@ public Builder setPort(int value) { * *
      * Port number of the gRPC service. Number must be in the range 1 to 65535.
-     * If not specified, defaults to 8080.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
      * 
* * int32 port = 1; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java index 1fdb47b2f4a3..28d87570b867 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/GRPCActionOrBuilder.java @@ -28,7 +28,8 @@ public interface GRPCActionOrBuilder * *
    * Port number of the gRPC service. Number must be in the range 1 to 65535.
-   * If not specified, defaults to 8080.
+   * If not specified, defaults to the exposed port of the container, which is
+   * the value of container.ports[0].containerPort.
    * 
* * int32 port = 1; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java index b97aa06dfe05..703261c2685f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetAction.java @@ -190,6 +190,26 @@ public com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int i return httpHeaders_.get(index); } + public static final int PORT_FIELD_NUMBER = 5; + private int port_ = 0; + /** + * + * + *
+   * Port number to access on the container. Must be in the range 1 to 65535.
+   * If not specified, defaults to the exposed port of the container, which is
+   * the value of container.ports[0].containerPort.
+   * 
+ * + * int32 port = 5; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -210,6 +230,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < httpHeaders_.size(); i++) { output.writeMessage(4, httpHeaders_.get(i)); } + if (port_ != 0) { + output.writeInt32(5, port_); + } getUnknownFields().writeTo(output); } @@ -225,6 +248,9 @@ public int getSerializedSize() { for (int i = 0; i < httpHeaders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, httpHeaders_.get(i)); } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, port_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -242,6 +268,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPath().equals(other.getPath())) return false; if (!getHttpHeadersList().equals(other.getHttpHeadersList())) return false; + if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,6 +286,8 @@ public int hashCode() { hash = (37 * hash) + HTTP_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHttpHeadersList().hashCode(); } + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -405,6 +434,7 @@ public Builder clear() { httpHeadersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; return this; } @@ -457,6 +487,9 @@ private void buildPartial0(com.google.cloud.run.v2.HTTPGetAction result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.port_ = port_; + } } @java.lang.Override @@ -536,6 +569,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.HTTPGetAction other) { } } } + if (other.getPort() != 0) { + setPort(other.getPort()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -581,6 +617,12 @@ public Builder mergeFrom( } break; } // case 34 + case 40: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1054,6 +1096,65 @@ public java.util.List getHttpHeaders return httpHeadersBuilder_; } + private int port_; + /** + * + * + *
+     * Port number to access on the container. Must be in the range 1 to 65535.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
+     * 
+ * + * int32 port = 5; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Port number to access on the container. Must be in the range 1 to 65535.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
+     * 
+ * + * int32 port = 5; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Port number to access on the container. Must be in the range 1 to 65535.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
+     * 
+ * + * int32 port = 5; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000004); + port_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java index 187f6e93c659..dfc816a4f592 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/HTTPGetActionOrBuilder.java @@ -99,4 +99,19 @@ public interface HTTPGetActionOrBuilder * repeated .google.cloud.run.v2.HTTPHeader http_headers = 4; */ com.google.cloud.run.v2.HTTPHeaderOrBuilder getHttpHeadersOrBuilder(int index); + + /** + * + * + *
+   * Port number to access on the container. Must be in the range 1 to 65535.
+   * If not specified, defaults to the exposed port of the container, which is
+   * the value of container.ports[0].containerPort.
+   * 
+ * + * int32 port = 5; + * + * @return The port. + */ + int getPort(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java index 9419eeba875d..29320a00951a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Job.java @@ -246,12 +246,13 @@ public int getLabelsCount() { * * *
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -277,12 +278,13 @@ public java.util.Map getLabels() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -299,12 +301,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -328,12 +331,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -385,16 +389,16 @@ public int getAnnotationsCount() {
    *
    *
    * 
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -416,16 +420,16 @@ public java.util.Map getAnnotations() { * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -438,16 +442,16 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -467,16 +471,16 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -906,6 +910,12 @@ public com.google.protobuf.ByteString getClientVersionBytes() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -924,6 +934,12 @@ public int getLaunchStageValue() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -1325,6 +1341,24 @@ public boolean getReconciling() { return reconciling_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 25; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1456,6 +1490,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(23, reconciling_); } + if (satisfiesPzs_ != false) { + output.writeBool(25, satisfiesPzs_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -1550,6 +1587,9 @@ public int getSerializedSize() { if (reconciling_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, reconciling_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, satisfiesPzs_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -1614,6 +1654,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLatestCreatedExecution().equals(other.getLatestCreatedExecution())) return false; } if (getReconciling() != other.getReconciling()) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1692,6 +1733,8 @@ public int hashCode() { } hash = (37 * hash) + RECONCILING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1915,6 +1958,7 @@ public Builder clear() { latestCreatedExecutionBuilder_ = null; } reconciling_ = false; + satisfiesPzs_ = false; etag_ = ""; return this; } @@ -2038,6 +2082,9 @@ private void buildPartial0(com.google.cloud.run.v2.Job result) { result.reconciling_ = reconciling_; } if (((from_bitField0_ & 0x00400000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { result.etag_ = etag_; } } @@ -2187,9 +2234,12 @@ public Builder mergeFrom(com.google.cloud.run.v2.Job other) { if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2372,10 +2422,16 @@ public Builder mergeFrom( bitField0_ |= 0x00200000; break; } // case 184 + case 200: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00400000; + break; + } // case 200 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 794 default: @@ -2714,12 +2770,13 @@ public int getLabelsCount() { * * *
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2745,12 +2802,13 @@ public java.util.Map getLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2767,12 +2825,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2796,12 +2855,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2831,12 +2891,13 @@ public Builder clearLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2862,12 +2923,13 @@ public java.util.Map getMutableLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2891,12 +2953,13 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -2943,16 +3006,16 @@ public int getAnnotationsCount() {
      *
      *
      * 
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -2974,16 +3037,16 @@ public java.util.Map getAnnotations() { * * *
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -2996,16 +3059,16 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -3025,16 +3088,16 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -3060,16 +3123,16 @@ public Builder clearAnnotations() { * * *
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -3091,16 +3154,16 @@ public java.util.Map getMutableAnnotations() * * *
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -3120,16 +3183,16 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style annotations for the resource. Unstructured key value map that may
+     * Unstructured key value map that may
      * be set by external tools to store and arbitrary metadata.
      * They are not queryable and should be preserved
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Job.
+     * namespaces, and they will be rejected on new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Job.
      * <p>This field follows Kubernetes annotations' namespacing, limits, and
-     * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+     * rules.
      * 
* * map<string, string> annotations = 5; @@ -4386,6 +4449,12 @@ public Builder setClientVersionBytes(com.google.protobuf.ByteString value) { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -4404,6 +4473,12 @@ public int getLaunchStageValue() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -4425,6 +4500,12 @@ public Builder setLaunchStageValue(int value) { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -4444,6 +4525,12 @@ public com.google.api.LaunchStage getLaunchStage() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -4468,6 +4555,12 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -5932,6 +6025,59 @@ public Builder clearReconciling() { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00400000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + private java.lang.Object etag_ = ""; /** * @@ -5997,7 +6143,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6015,7 +6161,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -6038,7 +6184,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java index 4dd980298635..53cfa85dd8c9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobOrBuilder.java @@ -99,12 +99,13 @@ public interface JobOrBuilder * * *
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -118,12 +119,13 @@ public interface JobOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -140,12 +142,13 @@ public interface JobOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -159,12 +162,13 @@ public interface JobOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -182,12 +186,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -202,16 +207,16 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -221,16 +226,16 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -243,16 +248,16 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -262,16 +267,16 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -285,16 +290,16 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * KRM-style annotations for the resource. Unstructured key value map that may
+   * Unstructured key value map that may
    * be set by external tools to store and arbitrary metadata.
    * They are not queryable and should be preserved
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Job.
+   * namespaces, and they will be rejected on new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Job.
    * <p>This field follows Kubernetes annotations' namespacing, limits, and
-   * rules. More info: https://kubernetes.io/docs/user-guide/annotations
+   * rules.
    * 
* * map<string, string> annotations = 5; @@ -564,6 +569,12 @@ java.lang.String getAnnotationsOrDefault( * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -579,6 +590,12 @@ java.lang.String getAnnotationsOrDefault( * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 14; @@ -881,6 +898,19 @@ java.lang.String getAnnotationsOrDefault( */ boolean getReconciling(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java index f4eb7921dbca..0b53958d1fba 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/JobProto.java @@ -81,12 +81,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\035google/cloud/run/v2/job.proto\022\023google." - + "cloud.run.v2\032#google/cloud/run/v2/execut" - + "ion.proto\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\035google/api/launch_sta" - + "ge.proto\032\031google/api/resource.proto\032#goo" - + "gle/cloud/run/v2/condition.proto\032,google" + + "cloud.run.v2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\035google/api/launch_" + + "stage.proto\032\031google/api/resource.proto\032#" + + "google/cloud/run/v2/condition.proto\032#goo" + + "gle/cloud/run/v2/execution.proto\032,google" + "/cloud/run/v2/execution_template.proto\032)" + "google/cloud/run/v2/vendor_settings.prot" + "o\032\036google/iam/v1/iam_policy.proto\032\032googl" @@ -110,7 +110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n.googleapis.com/Job\022\025\n\rvalidate_only\030\003 " + "\001(\010\022\014\n\004etag\030\004 \001(\t\"b\n\rRunJobRequest\022,\n\004na" + "me\030\001 \001(\tB\036\340A\002\372A\030\n\026run.googleapis.com/Job" - + "\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\212\t" + + "\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\246\t" + "\n\003Job\022\014\n\004name\030\001 \001(\t\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\027\n" + "\ngeneration\030\003 \001(\003B\003\340A\003\0224\n\006labels\030\004 \003(\0132$" + ".google.cloud.run.v2.Job.LabelsEntry\022>\n\013" @@ -135,67 +135,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "unt\030\024 \001(\005B\003\340A\003\022N\n\030latest_created_executi" + "on\030\026 \001(\0132\'.google.cloud.run.v2.Execution" + "ReferenceB\003\340A\003\022\030\n\013reconciling\030\027 \001(\010B\003\340A\003" - + "\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:R" - + "\352AO\n\026run.googleapis.com/Job\0222projects/{p" - + "roject}/locations/{location}/jobs/{job}R" - + "\001\001\"\253\001\n\022ExecutionReference\022/\n\004name\030\001 \001(\tB" - + "!\372A\036\n\034run.googleapis.com/Execution\022/\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\0223\n\017completion_time\030\003 \001(\0132\032.google.pr" - + "otobuf.Timestamp2\314\013\n\004Jobs\022\251\001\n\tCreateJob\022" - + "%.google.cloud.run.v2.CreateJobRequest\032\035" - + ".google.longrunning.Operation\"V\202\323\344\223\002/\"(/" - + "v2/{parent=projects/*/locations/*}/jobs:" - + "\003job\332A\021parent,job,job_id\312A\n\n\003Job\022\003Job\022\177\n" - + "\006GetJob\022\".google.cloud.run.v2.GetJobRequ" - + "est\032\030.google.cloud.run.v2.Job\"7\202\323\344\223\002*\022(/" + + "\022\032\n\rsatisfies_pzs\030\031 \001(\010B\003\340A\003\022\021\n\004etag\030c \001" + + "(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:R\352AO\n\026run.goo" + + "gleapis.com/Job\0222projects/{project}/loca" + + "tions/{location}/jobs/{job}R\001\001\"\253\001\n\022Execu" + + "tionReference\022/\n\004name\030\001 \001(\tB!\372A\036\n\034run.go" + + "ogleapis.com/Execution\022/\n\013create_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n\017compl" + + "etion_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp2\314\013\n\004Jobs\022\251\001\n\tCreateJob\022%.google.clo" + + "ud.run.v2.CreateJobRequest\032\035.google.long" + + "running.Operation\"V\202\323\344\223\002/\"(/v2/{parent=p" + + "rojects/*/locations/*}/jobs:\003job\332A\021paren" + + "t,job,job_id\312A\n\n\003Job\022\003Job\022\177\n\006GetJob\022\".go" + + "ogle.cloud.run.v2.GetJobRequest\032\030.google" + + ".cloud.run.v2.Job\"7\202\323\344\223\002*\022(/v2/{name=pro" + + "jects/*/locations/*/jobs/*}\332A\004name\022\222\001\n\010L" + + "istJobs\022$.google.cloud.run.v2.ListJobsRe" + + "quest\032%.google.cloud.run.v2.ListJobsResp" + + "onse\"9\202\323\344\223\002*\022(/v2/{parent=projects/*/loc" + + "ations/*}/jobs\332A\006parent\022\237\001\n\tUpdateJob\022%." + + "google.cloud.run.v2.UpdateJobRequest\032\035.g" + + "oogle.longrunning.Operation\"L\202\323\344\223\00232,/v2" + + "/{job.name=projects/*/locations/*/jobs/*" + + "}:\003job\332A\003job\312A\n\n\003Job\022\003Job\022\227\001\n\tDeleteJob\022" + + "%.google.cloud.run.v2.DeleteJobRequest\032\035" + + ".google.longrunning.Operation\"D\202\323\344\223\002**(/" + "v2/{name=projects/*/locations/*/jobs/*}\332" - + "A\004name\022\222\001\n\010ListJobs\022$.google.cloud.run.v" - + "2.ListJobsRequest\032%.google.cloud.run.v2." - + "ListJobsResponse\"9\202\323\344\223\002*\022(/v2/{parent=pr" - + "ojects/*/locations/*}/jobs\332A\006parent\022\237\001\n\t" - + "UpdateJob\022%.google.cloud.run.v2.UpdateJo" - + "bRequest\032\035.google.longrunning.Operation\"" - + "L\202\323\344\223\00232,/v2/{job.name=projects/*/locati" - + "ons/*/jobs/*}:\003job\332A\003job\312A\n\n\003Job\022\003Job\022\227\001" - + "\n\tDeleteJob\022%.google.cloud.run.v2.Delete" - + "JobRequest\032\035.google.longrunning.Operatio" - + "n\"D\202\323\344\223\002**(/v2/{name=projects/*/location" - + "s/*/jobs/*}\332A\004name\312A\n\n\003Job\022\003Job\022\244\001\n\006RunJ" - + "ob\022\".google.cloud.run.v2.RunJobRequest\032\035" - + ".google.longrunning.Operation\"W\202\323\344\223\0021\",/" - + "v2/{name=projects/*/locations/*/jobs/*}:" - + "run:\001*\332A\004name\312A\026\n\tExecution\022\tExecution\022\214" - + "\001\n\014GetIamPolicy\022\".google.iam.v1.GetIamPo" - + "licyRequest\032\025.google.iam.v1.Policy\"A\202\323\344\223" - + "\002;\0229/v2/{resource=projects/*/locations/*" - + "/jobs/*}:getIamPolicy\022\217\001\n\014SetIamPolicy\022\"" - + ".google.iam.v1.SetIamPolicyRequest\032\025.goo" - + "gle.iam.v1.Policy\"D\202\323\344\223\002>\"9/v2/{resource" - + "=projects/*/locations/*/jobs/*}:setIamPo" - + "licy:\001*\022\265\001\n\022TestIamPermissions\022(.google." - + "iam.v1.TestIamPermissionsRequest\032).googl" - + "e.iam.v1.TestIamPermissionsResponse\"J\202\323\344" - + "\223\002D\"?/v2/{resource=projects/*/locations/" - + "*/jobs/*}:testIamPermissions:\001*\032F\312A\022run." - + "googleapis.com\322A.https://www.googleapis." - + "com/auth/cloud-platformBP\n\027com.google.cl" - + "oud.run.v2B\010JobProtoP\001Z)cloud.google.com" - + "/go/run/apiv2/runpb;runpbP\000b\006proto3" + + "A\004name\312A\n\n\003Job\022\003Job\022\244\001\n\006RunJob\022\".google." + + "cloud.run.v2.RunJobRequest\032\035.google.long" + + "running.Operation\"W\202\323\344\223\0021\",/v2/{name=pro" + + "jects/*/locations/*/jobs/*}:run:\001*\332A\004nam" + + "e\312A\026\n\tExecution\022\tExecution\022\214\001\n\014GetIamPol" + + "icy\022\".google.iam.v1.GetIamPolicyRequest\032" + + "\025.google.iam.v1.Policy\"A\202\323\344\223\002;\0229/v2/{res" + + "ource=projects/*/locations/*/jobs/*}:get" + + "IamPolicy\022\217\001\n\014SetIamPolicy\022\".google.iam." + + "v1.SetIamPolicyRequest\032\025.google.iam.v1.P" + + "olicy\"D\202\323\344\223\002>\"9/v2/{resource=projects/*/" + + "locations/*/jobs/*}:setIamPolicy:\001*\022\265\001\n\022" + + "TestIamPermissions\022(.google.iam.v1.TestI" + + "amPermissionsRequest\032).google.iam.v1.Tes" + + "tIamPermissionsResponse\"J\202\323\344\223\002D\"?/v2/{re" + + "source=projects/*/locations/*/jobs/*}:te" + + "stIamPermissions:\001*\032F\312A\022run.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformBP\n\027com.google.cloud.run.v2B\010" + + "JobProtoP\001Z)cloud.google.com/go/run/apiv" + + "2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.run.v2.ExecutionProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.LaunchStageProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.run.v2.ConditionProto.getDescriptor(), + com.google.cloud.run.v2.ExecutionProto.getDescriptor(), com.google.cloud.run.v2.ExecutionTemplateProto.getDescriptor(), com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(), com.google.iam.v1.IamPolicyProto.getDescriptor(), @@ -286,6 +287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionCount", "LatestCreatedExecution", "Reconciling", + "SatisfiesPzs", "Etag", }); internal_static_google_cloud_run_v2_Job_LabelsEntry_descriptor = @@ -324,13 +326,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); - com.google.cloud.run.v2.ExecutionProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.LaunchStageProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.run.v2.ConditionProto.getDescriptor(); + com.google.cloud.run.v2.ExecutionProto.getDescriptor(); com.google.cloud.run.v2.ExecutionTemplateProto.getDescriptor(); com.google.cloud.run.v2.VendorSettingsProto.getDescriptor(); com.google.iam.v1.IamPolicyProto.getDescriptor(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java index 109e6ac16368..95b974a82b0e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/K8sMinProto.java @@ -117,57 +117,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "meMount\022\023\n\013working_dir\030\t \001(\t\0222\n\016liveness" + "_probe\030\n \001(\0132\032.google.cloud.run.v2.Probe" + "\0221\n\rstartup_probe\030\013 \001(\0132\032.google.cloud.r" - + "un.v2.Probe\"\236\001\n\024ResourceRequirements\022E\n\006" + + "un.v2.Probe\"\271\001\n\024ResourceRequirements\022E\n\006" + "limits\030\001 \003(\01325.google.cloud.run.v2.Resou" + "rceRequirements.LimitsEntry\022\020\n\010cpu_idle\030" - + "\002 \001(\010\032-\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"q\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340A" - + "\002\022\017\n\005value\030\002 \001(\tH\000\0229\n\014value_source\030\003 \001(\013" - + "2!.google.cloud.run.v2.EnvVarSourceH\000B\010\n" - + "\006values\"N\n\014EnvVarSource\022>\n\016secret_key_re" - + "f\030\001 \001(\0132&.google.cloud.run.v2.SecretKeyS" - + "elector\"\222\001\n\021SecretKeySelector\022;\n\006secret\030" - + "\001 \001(\tB+\340A\002\372A%\n#secretmanager.googleapis." - + "com/Secret\022@\n\007version\030\002 \001(\tB/\372A,\n*secret" - + "manager.googleapis.com/SecretVersion\"5\n\r" - + "ContainerPort\022\014\n\004name\030\001 \001(\t\022\026\n\016container" - + "_port\030\003 \001(\005\"9\n\013VolumeMount\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\002\022\027\n\nmount_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volum" - + "e\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.g" - + "oogle.cloud.run.v2.SecretVolumeSourceH\000\022" - + "C\n\022cloud_sql_instance\030\003 \001(\0132%.google.clo" - + "ud.run.v2.CloudSqlInstanceH\000B\r\n\013volume_t" - + "ype\"r\n\022SecretVolumeSource\022\023\n\006secret\030\001 \001(" - + "\tB\003\340A\002\0221\n\005items\030\002 \003(\0132\".google.cloud.run" - + ".v2.VersionToPath\022\024\n\014default_mode\030\003 \001(\005\"" - + "A\n\rVersionToPath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007v" - + "ersion\030\002 \001(\t\022\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlIn" - + "stance\022\021\n\tinstances\030\001 \003(\t\"\245\002\n\005Probe\022\035\n\025i" - + "nitial_delay_seconds\030\001 \001(\005\022\027\n\017timeout_se" - + "conds\030\002 \001(\005\022\026\n\016period_seconds\030\003 \001(\005\022\031\n\021f" - + "ailure_threshold\030\004 \001(\005\0226\n\010http_get\030\005 \001(\013" - + "2\".google.cloud.run.v2.HTTPGetActionH\000\022:" - + "\n\ntcp_socket\030\006 \001(\0132$.google.cloud.run.v2" - + ".TCPSocketActionH\000\022/\n\004grpc\030\007 \001(\0132\037.googl" - + "e.cloud.run.v2.GRPCActionH\000B\014\n\nprobe_typ" - + "e\"T\n\rHTTPGetAction\022\014\n\004path\030\001 \001(\t\0225\n\014http" - + "_headers\030\004 \003(\0132\037.google.cloud.run.v2.HTT" - + "PHeader\".\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A\002" - + "\022\r\n\005value\030\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004po" - + "rt\030\001 \001(\005\"+\n\nGRPCAction\022\014\n\004port\030\001 \001(\005\022\017\n\007" - + "service\030\002 \001(\tB\351\003\n\027com.google.cloud.run.v" - + "2B\013K8sMinProtoP\001Z)cloud.google.com/go/ru" - + "n/apiv2/runpb;runpb\352Ax\n!cloudkms.googlea" - + "pis.com/CryptoKey\022Sprojects/{project}/lo" - + "cations/{location}/keyRings/{key_ring}/c" - + "ryptoKeys/{crypto_key}\352AJ\n#secretmanager" - + ".googleapis.com/Secret\022#projects/{projec" - + "t}/secrets/{secret}\352Ad\n*secretmanager.go" - + "ogleapis.com/SecretVersion\0226projects/{pr" - + "oject}/secrets/{secret}/versions/{versio" - + "n}\352Ad\n\"vpcaccess.googleapis.com/Connecto" - + "r\022>projects/{project}/locations/{locatio" - + "n}/connectors/{connector}b\006proto3" + + "\002 \001(\010\022\031\n\021startup_cpu_boost\030\003 \001(\010\032-\n\013Limi" + + "tsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "q\n\006EnvVar\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\017\n\005value\030\002 " + + "\001(\tH\000\0229\n\014value_source\030\003 \001(\0132!.google.clo" + + "ud.run.v2.EnvVarSourceH\000B\010\n\006values\"N\n\014En" + + "vVarSource\022>\n\016secret_key_ref\030\001 \001(\0132&.goo" + + "gle.cloud.run.v2.SecretKeySelector\"\222\001\n\021S" + + "ecretKeySelector\022;\n\006secret\030\001 \001(\tB+\340A\002\372A%" + + "\n#secretmanager.googleapis.com/Secret\022@\n" + + "\007version\030\002 \001(\tB/\372A,\n*secretmanager.googl" + + "eapis.com/SecretVersion\"5\n\rContainerPort" + + "\022\014\n\004name\030\001 \001(\t\022\026\n\016container_port\030\003 \001(\005\"9" + + "\n\013VolumeMount\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nmoun" + + "t_path\030\003 \001(\tB\003\340A\002\"\252\001\n\006Volume\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\0229\n\006secret\030\002 \001(\0132\'.google.cloud.r" + + "un.v2.SecretVolumeSourceH\000\022C\n\022cloud_sql_" + + "instance\030\003 \001(\0132%.google.cloud.run.v2.Clo" + + "udSqlInstanceH\000B\r\n\013volume_type\"r\n\022Secret" + + "VolumeSource\022\023\n\006secret\030\001 \001(\tB\003\340A\002\0221\n\005ite" + + "ms\030\002 \003(\0132\".google.cloud.run.v2.VersionTo" + + "Path\022\024\n\014default_mode\030\003 \001(\005\"A\n\rVersionToP" + + "ath\022\021\n\004path\030\001 \001(\tB\003\340A\002\022\017\n\007version\030\002 \001(\t\022" + + "\014\n\004mode\030\003 \001(\005\"%\n\020CloudSqlInstance\022\021\n\tins" + + "tances\030\001 \003(\t\"\245\002\n\005Probe\022\035\n\025initial_delay_" + + "seconds\030\001 \001(\005\022\027\n\017timeout_seconds\030\002 \001(\005\022\026" + + "\n\016period_seconds\030\003 \001(\005\022\031\n\021failure_thresh" + + "old\030\004 \001(\005\0226\n\010http_get\030\005 \001(\0132\".google.clo" + + "ud.run.v2.HTTPGetActionH\000\022:\n\ntcp_socket\030" + + "\006 \001(\0132$.google.cloud.run.v2.TCPSocketAct" + + "ionH\000\022/\n\004grpc\030\007 \001(\0132\037.google.cloud.run.v" + + "2.GRPCActionH\000B\014\n\nprobe_type\"b\n\rHTTPGetA" + + "ction\022\014\n\004path\030\001 \001(\t\0225\n\014http_headers\030\004 \003(" + + "\0132\037.google.cloud.run.v2.HTTPHeader\022\014\n\004po" + + "rt\030\005 \001(\005\".\n\nHTTPHeader\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\002\022\r\n\005value\030\002 \001(\t\"\037\n\017TCPSocketAction\022\014\n\004p" + + "ort\030\001 \001(\005\"+\n\nGRPCAction\022\014\n\004port\030\001 \001(\005\022\017\n" + + "\007service\030\002 \001(\tB\351\003\n\027com.google.cloud.run." + + "v2B\013K8sMinProtoP\001Z)cloud.google.com/go/r" + + "un/apiv2/runpb;runpb\352Ax\n!cloudkms.google" + + "apis.com/CryptoKey\022Sprojects/{project}/l" + + "ocations/{location}/keyRings/{key_ring}/" + + "cryptoKeys/{crypto_key}\352AJ\n#secretmanage" + + "r.googleapis.com/Secret\022#projects/{proje" + + "ct}/secrets/{secret}\352Ad\n*secretmanager.g" + + "oogleapis.com/SecretVersion\0226projects/{p" + + "roject}/secrets/{secret}/versions/{versi" + + "on}\352Ad\n\"vpcaccess.googleapis.com/Connect" + + "or\022>projects/{project}/locations/{locati" + + "on}/connectors/{connector}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -200,7 +201,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_ResourceRequirements_descriptor, new java.lang.String[] { - "Limits", "CpuIdle", + "Limits", "CpuIdle", "StartupCpuBoost", }); internal_static_google_cloud_run_v2_ResourceRequirements_LimitsEntry_descriptor = internal_static_google_cloud_run_v2_ResourceRequirements_descriptor.getNestedTypes().get(0); @@ -303,7 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_HTTPGetAction_descriptor, new java.lang.String[] { - "Path", "HttpHeaders", + "Path", "HttpHeaders", "Port", }); internal_static_google_cloud_run_v2_HTTPHeader_descriptor = getDescriptor().getMessageTypes().get(13); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java index 083429358b10..5cebcabeaf26 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Probe.java @@ -124,8 +124,6 @@ public ProbeTypeCase getProbeTypeCase() { * initiated. * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe * is 3600. Maximum value for startup probe is 240. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 initial_delay_seconds = 1; @@ -146,8 +144,6 @@ public int getInitialDelaySeconds() { * Number of seconds after which the probe times out. * Defaults to 1 second. Minimum value is 1. Maximum value is 3600. * Must be smaller than period_seconds. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 timeout_seconds = 2; @@ -905,8 +901,6 @@ public Builder clearProbeType() { * initiated. * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe * is 3600. Maximum value for startup probe is 240. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 initial_delay_seconds = 1; @@ -925,8 +919,6 @@ public int getInitialDelaySeconds() { * initiated. * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe * is 3600. Maximum value for startup probe is 240. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 initial_delay_seconds = 1; @@ -949,8 +941,6 @@ public Builder setInitialDelaySeconds(int value) { * initiated. * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe * is 3600. Maximum value for startup probe is 240. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 initial_delay_seconds = 1; @@ -972,8 +962,6 @@ public Builder clearInitialDelaySeconds() { * Number of seconds after which the probe times out. * Defaults to 1 second. Minimum value is 1. Maximum value is 3600. * Must be smaller than period_seconds. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 timeout_seconds = 2; @@ -991,8 +979,6 @@ public int getTimeoutSeconds() { * Number of seconds after which the probe times out. * Defaults to 1 second. Minimum value is 1. Maximum value is 3600. * Must be smaller than period_seconds. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 timeout_seconds = 2; @@ -1014,8 +1000,6 @@ public Builder setTimeoutSeconds(int value) { * Number of seconds after which the probe times out. * Defaults to 1 second. Minimum value is 1. Maximum value is 3600. * Must be smaller than period_seconds. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 timeout_seconds = 2; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java index 40b0e47fcacd..933aa8d453cf 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ProbeOrBuilder.java @@ -31,8 +31,6 @@ public interface ProbeOrBuilder * initiated. * Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe * is 3600. Maximum value for startup probe is 240. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 initial_delay_seconds = 1; @@ -48,8 +46,6 @@ public interface ProbeOrBuilder * Number of seconds after which the probe times out. * Defaults to 1 second. Minimum value is 1. Maximum value is 3600. * Must be smaller than period_seconds. - * More info: - * https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes *
* * int32 timeout_seconds = 2; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java index 93c82950f4b1..54e630735727 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirements.java @@ -106,11 +106,13 @@ public int getLimitsCount() { * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -132,11 +134,13 @@ public java.util.Map getLimits() { * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -149,11 +153,13 @@ public java.util.Map getLimitsMap() { * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -173,11 +179,13 @@ public java.util.Map getLimitsMap() { * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -212,6 +220,26 @@ public boolean getCpuIdle() { return cpuIdle_; } + public static final int STARTUP_CPU_BOOST_FIELD_NUMBER = 3; + private boolean startupCpuBoost_ = false; + /** + * + * + *
+   * Determines whether CPU should be boosted on startup of a new container
+   * instance above the requested CPU threshold, this can help reduce cold-start
+   * latency.
+   * 
+ * + * bool startup_cpu_boost = 3; + * + * @return The startupCpuBoost. + */ + @java.lang.Override + public boolean getStartupCpuBoost() { + return startupCpuBoost_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -231,6 +259,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cpuIdle_ != false) { output.writeBool(2, cpuIdle_); } + if (startupCpuBoost_ != false) { + output.writeBool(3, startupCpuBoost_); + } getUnknownFields().writeTo(output); } @@ -253,6 +284,9 @@ public int getSerializedSize() { if (cpuIdle_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, cpuIdle_); } + if (startupCpuBoost_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, startupCpuBoost_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -271,6 +305,7 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetLimits().equals(other.internalGetLimits())) return false; if (getCpuIdle() != other.getCpuIdle()) return false; + if (getStartupCpuBoost() != other.getStartupCpuBoost()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -288,6 +323,8 @@ public int hashCode() { } hash = (37 * hash) + CPU_IDLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCpuIdle()); + hash = (37 * hash) + STARTUP_CPU_BOOST_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStartupCpuBoost()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -449,6 +486,7 @@ public Builder clear() { bitField0_ = 0; internalGetMutableLimits().clear(); cpuIdle_ = false; + startupCpuBoost_ = false; return this; } @@ -492,6 +530,9 @@ private void buildPartial0(com.google.cloud.run.v2.ResourceRequirements result) if (((from_bitField0_ & 0x00000002) != 0)) { result.cpuIdle_ = cpuIdle_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startupCpuBoost_ = startupCpuBoost_; + } } @java.lang.Override @@ -544,6 +585,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.ResourceRequirements other) { if (other.getCpuIdle() != false) { setCpuIdle(other.getCpuIdle()); } + if (other.getStartupCpuBoost() != false) { + setStartupCpuBoost(other.getStartupCpuBoost()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -588,6 +632,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + startupCpuBoost_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -636,11 +686,13 @@ public int getLimitsCount() { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -662,11 +714,13 @@ public java.util.Map getLimits() { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -679,11 +733,13 @@ public java.util.Map getLimitsMap() { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -703,11 +759,13 @@ public java.util.Map getLimitsMap() { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -733,11 +791,13 @@ public Builder clearLimits() { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -759,11 +819,13 @@ public java.util.Map getMutableLimits() { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -783,11 +845,13 @@ public Builder putLimits(java.lang.String key, java.lang.String value) { * * *
-     * Only memory and CPU are supported. Note: The only
-     * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-     * requires at least 2Gi of memory. The values of the map is string form of
-     * the 'quantity' k8s type:
-     * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+     * Only ´memory´ and 'cpu' are supported.
+     * <p>Notes:
+     *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+     * CPU requires at least 2Gi of memory. For more information, go to
+     * https://cloud.google.com/run/docs/configuring/cpu.
+     *   * For supported 'memory' values and syntax, go to
+     *  https://cloud.google.com/run/docs/configuring/memory-limits
      * 
* * map<string, string> limits = 1; @@ -851,6 +915,65 @@ public Builder clearCpuIdle() { return this; } + private boolean startupCpuBoost_; + /** + * + * + *
+     * Determines whether CPU should be boosted on startup of a new container
+     * instance above the requested CPU threshold, this can help reduce cold-start
+     * latency.
+     * 
+ * + * bool startup_cpu_boost = 3; + * + * @return The startupCpuBoost. + */ + @java.lang.Override + public boolean getStartupCpuBoost() { + return startupCpuBoost_; + } + /** + * + * + *
+     * Determines whether CPU should be boosted on startup of a new container
+     * instance above the requested CPU threshold, this can help reduce cold-start
+     * latency.
+     * 
+ * + * bool startup_cpu_boost = 3; + * + * @param value The startupCpuBoost to set. + * @return This builder for chaining. + */ + public Builder setStartupCpuBoost(boolean value) { + + startupCpuBoost_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Determines whether CPU should be boosted on startup of a new container
+     * instance above the requested CPU threshold, this can help reduce cold-start
+     * latency.
+     * 
+ * + * bool startup_cpu_boost = 3; + * + * @return This builder for chaining. + */ + public Builder clearStartupCpuBoost() { + bitField0_ = (bitField0_ & ~0x00000004); + startupCpuBoost_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java index 79da035f3d55..015bad217dee 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ResourceRequirementsOrBuilder.java @@ -27,11 +27,13 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -41,11 +43,13 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -58,11 +62,13 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -72,11 +78,13 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -90,11 +98,13 @@ java.lang.String getLimitsOrDefault( * * *
-   * Only memory and CPU are supported. Note: The only
-   * supported values for CPU are '1', '2',  '4', and '8'. Setting 4 CPU
-   * requires at least 2Gi of memory. The values of the map is string form of
-   * the 'quantity' k8s type:
-   * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
+   * Only ´memory´ and 'cpu' are supported.
+   * <p>Notes:
+   *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
+   * CPU requires at least 2Gi of memory. For more information, go to
+   * https://cloud.google.com/run/docs/configuring/cpu.
+   *   * For supported 'memory' values and syntax, go to
+   *  https://cloud.google.com/run/docs/configuring/memory-limits
    * 
* * map<string, string> limits = 1; @@ -113,4 +123,19 @@ java.lang.String getLimitsOrDefault( * @return The cpuIdle. */ boolean getCpuIdle(); + + /** + * + * + *
+   * Determines whether CPU should be boosted on startup of a new container
+   * instance above the requested CPU threshold, this can help reduce cold-start
+   * latency.
+   * 
+ * + * bool startup_cpu_boost = 3; + * + * @return The startupCpuBoost. + */ + boolean getStartupCpuBoost(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java index a78bd74c05a6..0fd348f4dd9c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Revision.java @@ -248,15 +248,15 @@ public int getLabelsCount() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -275,15 +275,15 @@ public java.util.Map getLabels() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -293,15 +293,15 @@ public java.util.Map getLabelsMap() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -318,15 +318,15 @@ public java.util.Map getLabelsMap() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -371,10 +371,14 @@ public int getAnnotationsCount() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -393,10 +397,14 @@ public java.util.Map getAnnotations() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -406,10 +414,14 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -426,10 +438,14 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -654,10 +670,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 10; @@ -672,10 +692,14 @@ public int getLaunchStageValue() { * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 10; @@ -1473,6 +1497,42 @@ public com.google.protobuf.ByteString getLogUriBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 37; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SESSION_AFFINITY_FIELD_NUMBER = 38; + private boolean sessionAffinity_ = false; + /** + * + * + *
+   * Enable session affinity.
+   * 
+ * + * bool session_affinity = 38; + * + * @return The sessionAffinity. + */ + @java.lang.Override + public boolean getSessionAffinity() { + return sessionAffinity_; + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1621,6 +1681,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxInstanceRequestConcurrency_ != 0) { output.writeInt32(34, maxInstanceRequestConcurrency_); } + if (satisfiesPzs_ != false) { + output.writeBool(37, satisfiesPzs_); + } + if (sessionAffinity_ != false) { + output.writeBool(38, sessionAffinity_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -1735,6 +1801,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeInt32Size( 34, maxInstanceRequestConcurrency_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(37, satisfiesPzs_); + } + if (sessionAffinity_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, sessionAffinity_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -1806,6 +1878,8 @@ public boolean equals(final java.lang.Object obj) { if (!getConditionsList().equals(other.getConditionsList())) return false; if (getObservedGeneration() != other.getObservedGeneration()) return false; if (!getLogUri().equals(other.getLogUri())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSessionAffinity() != other.getSessionAffinity()) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1896,6 +1970,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration()); hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SESSION_AFFINITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionAffinity()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2138,6 +2216,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00800000); observedGeneration_ = 0L; logUri_ = ""; + satisfiesPzs_ = false; + sessionAffinity_ = false; etag_ = ""; return this; } @@ -2280,6 +2360,12 @@ private void buildPartial0(com.google.cloud.run.v2.Revision result) { result.logUri_ = logUri_; } if (((from_bitField0_ & 0x04000000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.sessionAffinity_ = sessionAffinity_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { result.etag_ = etag_; } } @@ -2489,9 +2575,15 @@ public Builder mergeFrom(com.google.cloud.run.v2.Revision other) { bitField0_ |= 0x02000000; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSessionAffinity() != false) { + setSessionAffinity(other.getSessionAffinity()); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2709,10 +2801,22 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 272 + case 296: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x04000000; + break; + } // case 296 + case 304: + { + sessionAffinity_ = input.readBool(); + bitField0_ |= 0x08000000; + break; + } // case 304 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; break; } // case 794 default: @@ -3041,15 +3145,16 @@ public int getLabelsCount() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -3068,15 +3173,16 @@ public java.util.Map getLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -3086,15 +3192,16 @@ public java.util.Map getLabelsMap() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -3111,15 +3218,16 @@ public java.util.Map getLabelsMap() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -3142,15 +3250,16 @@ public Builder clearLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -3169,15 +3278,16 @@ public java.util.Map getMutableLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3194,15 +3304,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -3242,10 +3353,14 @@ public int getAnnotationsCount() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -3264,10 +3379,14 @@ public java.util.Map getAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -3277,10 +3396,14 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -3297,10 +3420,14 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -3323,10 +3450,14 @@ public Builder clearAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { @@ -3345,10 +3476,14 @@ public java.util.Map getMutableAnnotations() * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3365,10 +3500,14 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); @@ -4212,10 +4351,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 10; @@ -4230,10 +4373,14 @@ public int getLaunchStageValue() { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 10; @@ -4251,10 +4398,14 @@ public Builder setLaunchStageValue(int value) { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 10; @@ -4270,10 +4421,14 @@ public com.google.api.LaunchStage getLaunchStage() { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 10; @@ -4294,10 +4449,14 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { * * *
-     * Set the launch stage to a preview stage on write to allow use of preview
-     * features in that stage. On read, describes whether the resource uses
-     * preview features. Launch Stages are defined at [Google Cloud Platform
-     * Launch Stages](https://cloud.google.com/terms/launch-stages).
+     * The least stable launch stage needed to create this resource, as defined by
+     * [Google Cloud Platform Launch
+     * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+     * `ALPHA`, `BETA`, and `GA`.
+     * <p>Note that this value might not be what was used
+     * as input. For example, if ALPHA was provided as input in the parent
+     * resource, but only BETA and GA-level features are were, this field will be
+     * BETA.
      * 
* * .google.api.LaunchStage launch_stage = 10; @@ -7011,6 +7170,112 @@ public Builder setLogUriBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x04000000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean sessionAffinity_; + /** + * + * + *
+     * Enable session affinity.
+     * 
+ * + * bool session_affinity = 38; + * + * @return The sessionAffinity. + */ + @java.lang.Override + public boolean getSessionAffinity() { + return sessionAffinity_; + } + /** + * + * + *
+     * Enable session affinity.
+     * 
+ * + * bool session_affinity = 38; + * + * @param value The sessionAffinity to set. + * @return This builder for chaining. + */ + public Builder setSessionAffinity(boolean value) { + + sessionAffinity_ = value; + bitField0_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable session affinity.
+     * 
+ * + * bool session_affinity = 38; + * + * @return This builder for chaining. + */ + public Builder clearSessionAffinity() { + bitField0_ = (bitField0_ & ~0x08000000); + sessionAffinity_ = false; + onChanged(); + return this; + } + private java.lang.Object etag_ = ""; /** * @@ -7076,7 +7341,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7094,7 +7359,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } @@ -7117,7 +7382,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java index cc38c7d06629..b36db30f7c5a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionOrBuilder.java @@ -95,30 +95,30 @@ public interface RevisionOrBuilder * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getLabelsCount(); /** * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -128,30 +128,30 @@ public interface RevisionOrBuilder * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map getLabelsMap(); /** * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -162,15 +162,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -178,20 +178,28 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getAnnotationsCount(); /** * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ boolean containsAnnotations(java.lang.String key); /** Use {@link #getAnnotationsMap()} instead. */ @@ -201,20 +209,28 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map getAnnotationsMap(); /** * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -225,10 +241,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.lang.String getAnnotationsOrThrow(java.lang.String key); @@ -397,10 +417,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 10; @@ -412,10 +436,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Set the launch stage to a preview stage on write to allow use of preview
-   * features in that stage. On read, describes whether the resource uses
-   * preview features. Launch Stages are defined at [Google Cloud Platform
-   * Launch Stages](https://cloud.google.com/terms/launch-stages).
+   * The least stable launch stage needed to create this resource, as defined by
+   * [Google Cloud Platform Launch
+   * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
+   * `ALPHA`, `BETA`, and `GA`.
+   * <p>Note that this value might not be what was used
+   * as input. For example, if ALPHA was provided as input in the parent
+   * resource, but only BETA and GA-level features are were, this field will be
+   * BETA.
    * 
* * .google.api.LaunchStage launch_stage = 10; @@ -955,6 +983,32 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getLogUriBytes(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Enable session affinity.
+   * 
+ * + * bool session_affinity = 38; + * + * @return The sessionAffinity. + */ + boolean getSessionAffinity(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java index 5d35e19a7b40..49bae23bd9e4 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionProto.java @@ -85,67 +85,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "n.v2.Revision\022\027\n\017next_page_token\030\002 \001(\t\"o" + "\n\025DeleteRevisionRequest\0221\n\004name\030\001 \001(\tB#\340" + "A\002\372A\035\n\033run.googleapis.com/Revision\022\025\n\rva" - + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\344\013\n\010Revi" + + "lidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t\"\244\014\n\010Revi" + "sion\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A" - + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\0229\n\006labels\030\004 \003" + + "\003\022\027\n\ngeneration\030\003 \001(\003B\003\340A\003\022>\n\006labels\030\004 \003" + "(\0132).google.cloud.run.v2.Revision.Labels" - + "Entry\022C\n\013annotations\030\005 \003(\0132..google.clou" - + "d.run.v2.Revision.AnnotationsEntry\0224\n\013cr" - + "eate_time\030\006 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0224\n\013delete_time\030\010 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" - + "expire_time\030\t \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022-\n\014launch_stage\030\n \001(\0162\027.googl" - + "e.api.LaunchStage\0223\n\007service\030\013 \001(\tB\"\340A\003\372" - + "A\034\n\032run.googleapis.com/Service\0225\n\007scalin" - + "g\030\014 \001(\0132$.google.cloud.run.v2.RevisionSc" - + "aling\0222\n\nvpc_access\030\r \001(\0132\036.google.cloud" - + ".run.v2.VpcAccess\022(\n max_instance_reques" - + "t_concurrency\030\" \001(\005\022*\n\007timeout\030\017 \001(\0132\031.g" - + "oogle.protobuf.Duration\022\027\n\017service_accou" - + "nt\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036.google.cl" - + "oud.run.v2.Container\022,\n\007volumes\030\022 \003(\0132\033." - + "google.cloud.run.v2.Volume\022H\n\025execution_" - + "environment\030\024 \001(\0162).google.cloud.run.v2." - + "ExecutionEnvironment\022>\n\016encryption_key\030\025" - + " \001(\tB&\372A#\n!cloudkms.googleapis.com/Crypt" - + "oKey\022\\\n encryption_key_revocation_action" - + "\030\027 \001(\01622.google.cloud.run.v2.EncryptionK" - + "eyRevocationAction\022C\n encryption_key_shu" - + "tdown_duration\030\030 \001(\0132\031.google.protobuf.D" - + "uration\022\030\n\013reconciling\030\036 \001(\010B\003\340A\003\0227\n\ncon" - + "ditions\030\037 \003(\0132\036.google.cloud.run.v2.Cond" - + "itionB\003\340A\003\022 \n\023observed_generation\030 \001(\003B" - + "\003\340A\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\021\n\004etag\030c \001(\t" - + "B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:t\352Aq\n\033run.googl" - + "eapis.com/Revision\022Oprojects/{project}/l" - + "ocations/{location}/services/{service}/r" - + "evisions/{revision}R\001\0012\205\006\n\tRevisions\022\322\001\n" - + "\013GetRevision\022\'.google.cloud.run.v2.GetRe" - + "visionRequest\032\035.google.cloud.run.v2.Revi" - + "sion\"{\202\323\344\223\002:\0228/v2/{name=projects/*/locat" - + "ions/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004" - + "name\022$projects/*/locations/{location=*}/" - + "**\332A\004name\022\347\001\n\rListRevisions\022).google.clo" - + "ud.run.v2.ListRevisionsRequest\032*.google." - + "cloud.run.v2.ListRevisionsResponse\"\177\202\323\344\223" - + "\002:\0228/v2/{parent=projects/*/locations/*/s" - + "ervices/*}/revisions\212\323\344\223\0020\022.\n\006parent\022$pr" - + "ojects/*/locations/{location=*}/**\332A\006par" - + "ent\022\360\001\n\016DeleteRevision\022*.google.cloud.ru" - + "n.v2.DeleteRevisionRequest\032\035.google.long" - + "running.Operation\"\222\001\202\323\344\223\002:*8/v2/{name=pr" - + "ojects/*/locations/*/services/*/revision" - + "s/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations" - + "/{location=*}/**\332A\004name\312A\024\n\010Revision\022\010Re" - + "vision\032F\312A\022run.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformBU" - + "\n\027com.google.cloud.run.v2B\rRevisionProto" - + "P\001Z)cloud.google.com/go/run/apiv2/runpb;" - + "runpbb\006proto3" + + "EntryB\003\340A\003\022H\n\013annotations\030\005 \003(\0132..google" + + ".cloud.run.v2.Revision.AnnotationsEntryB" + + "\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013dele" + + "te_time\030\010 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013expire_time\030\t \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022-\n\014launch_stage\030\n \001" + + "(\0162\027.google.api.LaunchStage\0223\n\007service\030\013" + + " \001(\tB\"\340A\003\372A\034\n\032run.googleapis.com/Service" + + "\0225\n\007scaling\030\014 \001(\0132$.google.cloud.run.v2." + + "RevisionScaling\0222\n\nvpc_access\030\r \001(\0132\036.go" + + "ogle.cloud.run.v2.VpcAccess\022(\n max_insta" + + "nce_request_concurrency\030\" \001(\005\022*\n\007timeout" + + "\030\017 \001(\0132\031.google.protobuf.Duration\022\027\n\017ser" + + "vice_account\030\020 \001(\t\0222\n\ncontainers\030\021 \003(\0132\036" + + ".google.cloud.run.v2.Container\022,\n\007volume" + + "s\030\022 \003(\0132\033.google.cloud.run.v2.Volume\022H\n\025" + + "execution_environment\030\024 \001(\0162).google.clo" + + "ud.run.v2.ExecutionEnvironment\022>\n\016encryp" + + "tion_key\030\025 \001(\tB&\372A#\n!cloudkms.googleapis" + + ".com/CryptoKey\022\\\n encryption_key_revocat" + + "ion_action\030\027 \001(\01622.google.cloud.run.v2.E" + + "ncryptionKeyRevocationAction\022C\n encrypti" + + "on_key_shutdown_duration\030\030 \001(\0132\031.google." + + "protobuf.Duration\022\030\n\013reconciling\030\036 \001(\010B\003" + + "\340A\003\0227\n\nconditions\030\037 \003(\0132\036.google.cloud.r" + + "un.v2.ConditionB\003\340A\003\022 \n\023observed_generat" + + "ion\030 \001(\003B\003\340A\003\022\024\n\007log_uri\030! \001(\tB\003\340A\003\022\032\n\r" + + "satisfies_pzs\030% \001(\010B\003\340A\003\022\030\n\020session_affi" + + "nity\030& \001(\010\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020" + + "AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001:t\352Aq\n\033run.googleapis.com/Revisi" + + "on\022Oprojects/{project}/locations/{locati" + + "on}/services/{service}/revisions/{revisi" + + "on}R\001\0012\205\006\n\tRevisions\022\322\001\n\013GetRevision\022\'.g" + + "oogle.cloud.run.v2.GetRevisionRequest\032\035." + + "google.cloud.run.v2.Revision\"{\202\323\344\223\002:\0228/v" + + "2/{name=projects/*/locations/*/services/" + + "*/revisions/*}\212\323\344\223\002.\022,\n\004name\022$projects/*" + + "/locations/{location=*}/**\332A\004name\022\347\001\n\rLi" + + "stRevisions\022).google.cloud.run.v2.ListRe" + + "visionsRequest\032*.google.cloud.run.v2.Lis" + + "tRevisionsResponse\"\177\202\323\344\223\002:\0228/v2/{parent=" + + "projects/*/locations/*/services/*}/revis" + + "ions\212\323\344\223\0020\022.\n\006parent\022$projects/*/locatio" + + "ns/{location=*}/**\332A\006parent\022\360\001\n\016DeleteRe" + + "vision\022*.google.cloud.run.v2.DeleteRevis" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"\222\001\202\323\344\223\002:*8/v2/{name=projects/*/locatio" + + "ns/*/services/*/revisions/*}\212\323\344\223\002.\022,\n\004na" + + "me\022$projects/*/locations/{location=*}/**" + + "\332A\004name\312A\024\n\010Revision\022\010Revision\032F\312A\022run.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformBU\n\027com.google.clo" + + "ud.run.v2B\rRevisionProtoP\001Z)cloud.google" + + ".com/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -228,6 +229,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Conditions", "ObservedGeneration", "LogUri", + "SatisfiesPzs", + "SessionAffinity", "Etag", }); internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor = diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java index 65b970ebf8da..73728762a4e9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplate.java @@ -169,7 +169,13 @@ public int getLabelsCount() { * * *
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -195,7 +201,13 @@ public java.util.Map getLabels() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -212,7 +224,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -236,7 +254,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -288,11 +312,15 @@ public int getAnnotationsCount() {
    *
    *
    * 
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -314,11 +342,15 @@ public java.util.Map getAnnotations() { * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -331,11 +363,15 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -355,11 +391,15 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -833,6 +873,24 @@ public int getMaxInstanceRequestConcurrency() { return maxInstanceRequestConcurrency_; } + public static final int SESSION_AFFINITY_FIELD_NUMBER = 19; + private boolean sessionAffinity_ = false; + /** + * + * + *
+   * Enable session affinity.
+   * 
+ * + * bool session_affinity = 19; + * + * @return The sessionAffinity. + */ + @java.lang.Override + public boolean getSessionAffinity() { + return sessionAffinity_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -883,6 +941,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxInstanceRequestConcurrency_ != 0) { output.writeInt32(15, maxInstanceRequestConcurrency_); } + if (sessionAffinity_ != false) { + output.writeBool(19, sessionAffinity_); + } getUnknownFields().writeTo(output); } @@ -946,6 +1007,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeInt32Size( 15, maxInstanceRequestConcurrency_); } + if (sessionAffinity_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, sessionAffinity_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -983,6 +1047,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency()) return false; + if (getSessionAffinity() != other.getSessionAffinity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1032,6 +1097,8 @@ public int hashCode() { hash = (53 * hash) + getEncryptionKey().hashCode(); hash = (37 * hash) + MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER; hash = (53 * hash) + getMaxInstanceRequestConcurrency(); + hash = (37 * hash) + SESSION_AFFINITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionAffinity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1232,6 +1299,7 @@ public Builder clear() { executionEnvironment_ = 0; encryptionKey_ = ""; maxInstanceRequestConcurrency_ = 0; + sessionAffinity_ = false; return this; } @@ -1322,6 +1390,9 @@ private void buildPartial0(com.google.cloud.run.v2.RevisionTemplate result) { if (((from_bitField0_ & 0x00000800) != 0)) { result.maxInstanceRequestConcurrency_ = maxInstanceRequestConcurrency_; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.sessionAffinity_ = sessionAffinity_; + } } @java.lang.Override @@ -1457,6 +1528,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.RevisionTemplate other) { if (other.getMaxInstanceRequestConcurrency() != 0) { setMaxInstanceRequestConcurrency(other.getMaxInstanceRequestConcurrency()); } + if (other.getSessionAffinity() != false) { + setSessionAffinity(other.getSessionAffinity()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1580,6 +1654,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 120 + case 152: + { + sessionAffinity_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1739,7 +1819,13 @@ public int getLabelsCount() { * * *
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1765,7 +1851,13 @@ public java.util.Map getLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1782,7 +1874,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1806,7 +1904,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1836,7 +1940,13 @@ public Builder clearLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1862,7 +1972,13 @@ public java.util.Map getMutableLabels() {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1886,7 +2002,13 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * KRM-style labels for the resource.
+     * Unstructured key value map that can be used to organize and categorize
+     * objects.
+     * User-provided labels are shared with Google's billing system, so they can
+     * be used to filter, or break down billing charges by team, component,
+     * environment, state, etc. For more information, visit
+     * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -1933,11 +2055,15 @@ public int getAnnotationsCount() {
      *
      *
      * 
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -1959,11 +2085,15 @@ public java.util.Map getAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -1976,11 +2106,15 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -2000,11 +2134,15 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -2030,11 +2168,15 @@ public Builder clearAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -2056,11 +2198,15 @@ public java.util.Map getMutableAnnotations() * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -2080,11 +2226,15 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style annotations for the resource.
+     * Unstructured key value map that may be set by external tools to store and
+     * arbitrary metadata. They are not queryable and should be preserved
+     * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system annotations in v1 now
      * have a corresponding field in v2 RevisionTemplate.
+     * <p>This field follows Kubernetes annotations' namespacing, limits, and
+     * rules.
      * 
* * map<string, string> annotations = 3; @@ -3741,6 +3891,59 @@ public Builder clearMaxInstanceRequestConcurrency() { return this; } + private boolean sessionAffinity_; + /** + * + * + *
+     * Enable session affinity.
+     * 
+ * + * bool session_affinity = 19; + * + * @return The sessionAffinity. + */ + @java.lang.Override + public boolean getSessionAffinity() { + return sessionAffinity_; + } + /** + * + * + *
+     * Enable session affinity.
+     * 
+ * + * bool session_affinity = 19; + * + * @param value The sessionAffinity to set. + * @return This builder for chaining. + */ + public Builder setSessionAffinity(boolean value) { + + sessionAffinity_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable session affinity.
+     * 
+ * + * bool session_affinity = 19; + * + * @return This builder for chaining. + */ + public Builder clearSessionAffinity() { + bitField0_ = (bitField0_ & ~0x00001000); + sessionAffinity_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java index e615b38a8a77..732ebf5c9f8d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateOrBuilder.java @@ -54,7 +54,13 @@ public interface RevisionTemplateOrBuilder * * *
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -68,7 +74,13 @@ public interface RevisionTemplateOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -85,7 +97,13 @@ public interface RevisionTemplateOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -99,7 +117,13 @@ public interface RevisionTemplateOrBuilder
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -117,7 +141,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * KRM-style labels for the resource.
+   * Unstructured key value map that can be used to organize and categorize
+   * objects.
+   * User-provided labels are shared with Google's billing system, so they can
+   * be used to filter, or break down billing charges by team, component,
+   * environment, state, etc. For more information, visit
+   * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -132,11 +162,15 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -146,11 +180,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -163,11 +201,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -177,11 +219,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -195,11 +241,15 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Unstructured key value map that may be set by external tools to store and
+   * arbitrary metadata. They are not queryable and should be preserved
+   * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system annotations in v1 now
    * have a corresponding field in v2 RevisionTemplate.
+   * <p>This field follows Kubernetes annotations' namespacing, limits, and
+   * rules.
    * 
* * map<string, string> annotations = 3; @@ -518,4 +568,17 @@ java.lang.String getAnnotationsOrDefault( * @return The maxInstanceRequestConcurrency. */ int getMaxInstanceRequestConcurrency(); + + /** + * + * + *
+   * Enable session affinity.
+   * 
+ * + * bool session_affinity = 19; + * + * @return The sessionAffinity. + */ + boolean getSessionAffinity(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java index 90d7f124bc42..144ac98955dd 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/RevisionTemplateProto.java @@ -53,7 +53,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "esource.proto\032!google/cloud/run/v2/k8s.m" + "in.proto\032)google/cloud/run/v2/vendor_set" + "tings.proto\032\036google/protobuf/duration.pr" - + "oto\"\377\005\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + + "oto\"\231\006\n\020RevisionTemplate\0222\n\010revision\030\001 \001" + "(\tB \372A\035\n\033run.googleapis.com/Revision\022A\n\006" + "labels\030\002 \003(\01321.google.cloud.run.v2.Revis" + "ionTemplate.LabelsEntry\022K\n\013annotations\030\003" @@ -69,12 +69,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\r \001(\0162).google.cloud.run.v2.ExecutionEnv" + "ironment\022>\n\016encryption_key\030\016 \001(\tB&\372A#\n!c" + "loudkms.googleapis.com/CryptoKey\022(\n max_" - + "instance_request_concurrency\030\017 \001(\005\032-\n\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001B]\n\027com.google.cloud.run.v2" - + "B\025RevisionTemplateProtoP\001Z)cloud.google." - + "com/go/run/apiv2/runpb;runpbb\006proto3" + + "instance_request_concurrency\030\017 \001(\005\022\030\n\020se" + + "ssion_affinity\030\023 \001(\010\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotatio" + + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B" + + "]\n\027com.google.cloud.run.v2B\025RevisionTemp" + + "lateProtoP\001Z)cloud.google.com/go/run/api" + + "v2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -103,6 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionEnvironment", "EncryptionKey", "MaxInstanceRequestConcurrency", + "SessionAffinity", }); internal_static_google_cloud_run_v2_RevisionTemplate_LabelsEntry_descriptor = internal_static_google_cloud_run_v2_RevisionTemplate_descriptor.getNestedTypes().get(0); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java index 9d7e4e468b2b..a1910b0b86b3 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Service.java @@ -316,13 +316,13 @@ public int getLabelsCount() { * * *
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -348,13 +348,13 @@ public java.util.Map getLabels() {
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -371,13 +371,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -401,13 +401,13 @@ public java.util.Map getLabelsMap() {
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -464,11 +464,10 @@ public int getAnnotationsCount() {
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Service.
+   * namespaces, and they will be rejected in new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Service.
    * <p>This field follows Kubernetes
-   * annotations' namespacing, limits, and rules. More info:
-   * https://kubernetes.io/docs/user-guide/annotations
+   * annotations' namespacing, limits, and rules.
    * 
* * map<string, string> annotations = 6; @@ -495,11 +494,10 @@ public java.util.Map getAnnotations() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -517,11 +515,10 @@ public java.util.Map getAnnotationsMap() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -546,11 +543,10 @@ public java.util.Map getAnnotationsMap() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -1019,6 +1015,12 @@ public com.google.cloud.run.v2.IngressTraffic getIngress() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -1037,6 +1039,12 @@ public int getLaunchStageValue() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -1680,6 +1688,24 @@ public com.google.protobuf.ByteString getUriBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 38; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + public static final int RECONCILING_FIELD_NUMBER = 98; private boolean reconciling_ = false; /** @@ -1860,6 +1886,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 36, uri_); } + if (satisfiesPzs_ != false) { + output.writeBool(38, satisfiesPzs_); + } if (reconciling_ != false) { output.writeBool(98, reconciling_); } @@ -1969,6 +1998,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, uri_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, satisfiesPzs_); + } if (reconciling_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(98, reconciling_); } @@ -2037,6 +2069,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLatestCreatedRevision().equals(other.getLatestCreatedRevision())) return false; if (!getTrafficStatusesList().equals(other.getTrafficStatusesList())) return false; if (!getUri().equals(other.getUri())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (getReconciling() != other.getReconciling()) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -2126,6 +2159,8 @@ public int hashCode() { } hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -2367,6 +2402,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x01000000); uri_ = ""; + satisfiesPzs_ = false; reconciling_ = false; etag_ = ""; return this; @@ -2513,9 +2549,12 @@ private void buildPartial0(com.google.cloud.run.v2.Service result) { result.uri_ = uri_; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.reconciling_ = reconciling_; + result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x08000000) != 0)) { + result.reconciling_ = reconciling_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { result.etag_ = etag_; } } @@ -2733,12 +2772,15 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { bitField0_ |= 0x02000000; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2958,16 +3000,22 @@ public Builder mergeFrom( bitField0_ |= 0x02000000; break; } // case 290 + case 304: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x04000000; + break; + } // case 304 case 784: { reconciling_ = input.readBool(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 784 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 794 default: @@ -3433,13 +3481,13 @@ public int getLabelsCount() { * * *
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3465,13 +3513,13 @@ public java.util.Map getLabels() {
      *
      *
      * 
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3488,13 +3536,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3518,13 +3566,13 @@ public java.util.Map getLabelsMap() {
      *
      *
      * 
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3554,13 +3602,13 @@ public Builder clearLabels() {
      *
      *
      * 
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3586,13 +3634,13 @@ public java.util.Map getMutableLabels() {
      *
      *
      * 
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3616,13 +3664,13 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Map of string keys and values that can be used to organize and categorize
+     * Unstructured key value map that can be used to organize and categorize
      * objects.
      * User-provided labels are shared with Google's billing system, so they can
      * be used to filter, or break down billing charges by team, component,
      * environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-     * https://cloud.google.com/run/docs/configuring/labels
+     * https://cloud.google.com/run/docs/configuring/labels.
      * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
      * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -3674,11 +3722,10 @@ public int getAnnotationsCount() {
      * when modifying objects.
      * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
      * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-     * namespaces, and they will be rejected. All system annotations in v1 now
-     * have a corresponding field in v2 Service.
+     * namespaces, and they will be rejected in new resources. All system
+     * annotations in v1 now have a corresponding field in v2 Service.
      * <p>This field follows Kubernetes
-     * annotations' namespacing, limits, and rules. More info:
-     * https://kubernetes.io/docs/user-guide/annotations
+     * annotations' namespacing, limits, and rules.
      * 
* * map<string, string> annotations = 6; @@ -3705,11 +3752,10 @@ public java.util.Map getAnnotations() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -3727,11 +3773,10 @@ public java.util.Map getAnnotationsMap() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -3756,11 +3801,10 @@ public java.util.Map getAnnotationsMap() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -3791,11 +3835,10 @@ public Builder clearAnnotations() { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -3822,11 +3865,10 @@ public java.util.Map getMutableAnnotations() * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -3851,11 +3893,10 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -5212,6 +5253,12 @@ public Builder clearIngress() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -5230,6 +5277,12 @@ public int getLaunchStageValue() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -5251,6 +5304,12 @@ public Builder setLaunchStageValue(int value) { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -5270,6 +5329,12 @@ public com.google.api.LaunchStage getLaunchStage() { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -5294,6 +5359,12 @@ public Builder setLaunchStage(com.google.api.LaunchStage value) { * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -7597,6 +7668,59 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x04000000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + private boolean reconciling_; /** * @@ -7664,7 +7788,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -7698,7 +7822,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); reconciling_ = false; onChanged(); return this; @@ -7769,7 +7893,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -7787,7 +7911,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); return this; } @@ -7810,7 +7934,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java index 9c1c4ce2ed94..3721c9be76da 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceOrBuilder.java @@ -132,13 +132,13 @@ public interface ServiceOrBuilder * * *
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -152,13 +152,13 @@ public interface ServiceOrBuilder
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -175,13 +175,13 @@ public interface ServiceOrBuilder
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -195,13 +195,13 @@ public interface ServiceOrBuilder
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -219,13 +219,13 @@ java.lang.String getLabelsOrDefault(
    *
    *
    * 
-   * Map of string keys and values that can be used to organize and categorize
+   * Unstructured key value map that can be used to organize and categorize
    * objects.
    * User-provided labels are shared with Google's billing system, so they can
    * be used to filter, or break down billing charges by team, component,
    * environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
-   * https://cloud.google.com/run/docs/configuring/labels
+   * https://cloud.google.com/run/docs/configuring/labels.
    * <p>Cloud Run API v2 does not support labels with  `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
    * namespaces, and they will be rejected. All system labels in v1 now have a
@@ -245,11 +245,10 @@ java.lang.String getLabelsOrDefault(
    * when modifying objects.
    * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
    * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
-   * namespaces, and they will be rejected. All system annotations in v1 now
-   * have a corresponding field in v2 Service.
+   * namespaces, and they will be rejected in new resources. All system
+   * annotations in v1 now have a corresponding field in v2 Service.
    * <p>This field follows Kubernetes
-   * annotations' namespacing, limits, and rules. More info:
-   * https://kubernetes.io/docs/user-guide/annotations
+   * annotations' namespacing, limits, and rules.
    * 
* * map<string, string> annotations = 6; @@ -264,11 +263,10 @@ java.lang.String getLabelsOrDefault( * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -286,11 +284,10 @@ java.lang.String getLabelsOrDefault( * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -305,11 +302,10 @@ java.lang.String getLabelsOrDefault( * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -328,11 +324,10 @@ java.lang.String getAnnotationsOrDefault( * when modifying objects. * <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`, * `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - * namespaces, and they will be rejected. All system annotations in v1 now - * have a corresponding field in v2 Service. + * namespaces, and they will be rejected in new resources. All system + * annotations in v1 now have a corresponding field in v2 Service. * <p>This field follows Kubernetes - * annotations' namespacing, limits, and rules. More info: - * https://kubernetes.io/docs/user-guide/annotations + * annotations' namespacing, limits, and rules. *
* * map<string, string> annotations = 6; @@ -631,6 +626,12 @@ java.lang.String getAnnotationsOrDefault( * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -646,6 +647,12 @@ java.lang.String getAnnotationsOrDefault( * Launch Stages](https://cloud.google.com/terms/launch-stages). * Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA * is assumed. + * Set the launch stage to a preview stage on input to allow use of preview + * features in that stage. On read (or output), describes whether the resource + * uses preview features. + * <p> + * For example, if ALPHA is provided as input, but only BETA and GA-level + * features are used, this field will be BETA on output. *
* * .google.api.LaunchStage launch_stage = 16; @@ -1098,6 +1105,19 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getUriBytes(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java index 2ea48211e4e2..c0aeb9704d13 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceProto.java @@ -103,7 +103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "m/Service\"m\n\024DeleteServiceRequest\0220\n\004nam" + "e\030\001 \001(\tB\"\340A\002\372A\034\n\032run.googleapis.com/Serv" + "ice\022\025\n\rvalidate_only\030\002 \001(\010\022\014\n\004etag\030\003 \001(\t" - + "\"\230\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + + "\"\264\013\n\007Service\022\014\n\004name\030\001 \001(\t\022\023\n\013descriptio" + "n\030\002 \001(\t\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\027\n\ngeneration\030" + "\004 \001(\003B\003\340A\003\0228\n\006labels\030\005 \003(\0132(.google.clou" + "d.run.v2.Service.LabelsEntry\022B\n\013annotati" @@ -132,59 +132,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "test_created_revision\030\" \001(\tB#\340A\003\372A\035\n\033run" + ".googleapis.com/Revision\022G\n\020traffic_stat" + "uses\030# \003(\0132(.google.cloud.run.v2.Traffic" - + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\030\n\013r" - + "econciling\030b \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001:^\352A[\n\032run.googleapis" - + ".com/Service\022:projects/{project}/locatio" - + "ns/{location}/services/{service}R\001\0012\267\r\n\010" - + "Services\022\375\001\n\rCreateService\022).google.clou" - + "d.run.v2.CreateServiceRequest\032\035.google.l" - + "ongrunning.Operation\"\241\001\202\323\344\223\0027\",/v2/{pare" - + "nt=projects/*/locations/*}/services:\007ser" - + "vice\212\323\344\223\002-\022+\n\006parent\022!projects/*/locatio" - + "ns/{location=*}\332A\031parent,service,service" - + "_id\312A\022\n\007Service\022\007Service\022\303\001\n\nGetService\022" - + "&.google.cloud.run.v2.GetServiceRequest\032" - + "\034.google.cloud.run.v2.Service\"o\202\323\344\223\002.\022,/" - + "v2/{name=projects/*/locations/*/services" - + "/*}\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/" - + "{location=*}/**\332A\004name\022\325\001\n\014ListServices\022" - + "(.google.cloud.run.v2.ListServicesReques" - + "t\032).google.cloud.run.v2.ListServicesResp" - + "onse\"p\202\323\344\223\002.\022,/v2/{parent=projects/*/loc" - + "ations/*}/services\212\323\344\223\002-\022+\n\006parent\022!proj" - + "ects/*/locations/{location=*}\332A\006parent\022\374" - + "\001\n\rUpdateService\022).google.cloud.run.v2.U" - + "pdateServiceRequest\032\035.google.longrunning" - + ".Operation\"\240\001\202\323\344\223\002?24/v2/{service.name=p" - + "rojects/*/locations/*/services/*}:\007servi" - + "ce\212\323\344\223\0026\0224\n\014service.name\022$projects/*/loc" - + "ations/{location=*}/**\332A\007service\312A\022\n\007Ser" - + "vice\022\007Service\022\340\001\n\rDeleteService\022).google" - + ".cloud.run.v2.DeleteServiceRequest\032\035.goo" - + "gle.longrunning.Operation\"\204\001\202\323\344\223\002.*,/v2/" - + "{name=projects/*/locations/*/services/*}" - + "\212\323\344\223\002.\022,\n\004name\022$projects/*/locations/{lo" - + "cation=*}/**\332A\004name\312A\022\n\007Service\022\007Service" - + "\022\220\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" - + "PolicyRequest\032\025.google.iam.v1.Policy\"E\202\323" - + "\344\223\002?\022=/v2/{resource=projects/*/locations" - + "/*/services/*}:getIamPolicy\022\223\001\n\014SetIamPo" - + "licy\022\".google.iam.v1.SetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B\"=/v2/{re" - + "source=projects/*/locations/*/services/*" - + "}:setIamPolicy:\001*\022\271\001\n\022TestIamPermissions" - + "\022(.google.iam.v1.TestIamPermissionsReque" - + "st\032).google.iam.v1.TestIamPermissionsRes" - + "ponse\"N\202\323\344\223\002H\"C/v2/{resource=projects/*/" - + "locations/*/services/*}:testIamPermissio" - + "ns:\001*\032F\312A\022run.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformBT\n" - + "\027com.google.cloud.run.v2B\014ServiceProtoP\001" - + "Z)cloud.google.com/go/run/apiv2/runpb;ru" - + "npbb\006proto3" + + "TargetStatusB\003\340A\003\022\020\n\003uri\030$ \001(\tB\003\340A\003\022\032\n\rs" + + "atisfies_pzs\030& \001(\010B\003\340A\003\022\030\n\013reconciling\030b" + + " \001(\010B\003\340A\003\022\021\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:^\352A[\n\032run.googleapis.com/Service" + + "\022:projects/{project}/locations/{location" + + "}/services/{service}R\001\0012\267\r\n\010Services\022\375\001\n" + + "\rCreateService\022).google.cloud.run.v2.Cre" + + "ateServiceRequest\032\035.google.longrunning.O" + + "peration\"\241\001\202\323\344\223\0027\",/v2/{parent=projects/" + + "*/locations/*}/services:\007service\212\323\344\223\002-\022+" + + "\n\006parent\022!projects/*/locations/{location" + + "=*}\332A\031parent,service,service_id\312A\022\n\007Serv" + + "ice\022\007Service\022\303\001\n\nGetService\022&.google.clo" + + "ud.run.v2.GetServiceRequest\032\034.google.clo" + + "ud.run.v2.Service\"o\202\323\344\223\002.\022,/v2/{name=pro" + + "jects/*/locations/*/services/*}\212\323\344\223\002.\022,\n" + + "\004name\022$projects/*/locations/{location=*}" + + "/**\332A\004name\022\325\001\n\014ListServices\022(.google.clo" + + "ud.run.v2.ListServicesRequest\032).google.c" + + "loud.run.v2.ListServicesResponse\"p\202\323\344\223\002." + + "\022,/v2/{parent=projects/*/locations/*}/se" + + "rvices\212\323\344\223\002-\022+\n\006parent\022!projects/*/locat" + + "ions/{location=*}\332A\006parent\022\374\001\n\rUpdateSer" + + "vice\022).google.cloud.run.v2.UpdateService" + + "Request\032\035.google.longrunning.Operation\"\240" + + "\001\202\323\344\223\002?24/v2/{service.name=projects/*/lo" + + "cations/*/services/*}:\007service\212\323\344\223\0026\0224\n\014" + + "service.name\022$projects/*/locations/{loca" + + "tion=*}/**\332A\007service\312A\022\n\007Service\022\007Servic" + + "e\022\340\001\n\rDeleteService\022).google.cloud.run.v" + + "2.DeleteServiceRequest\032\035.google.longrunn" + + "ing.Operation\"\204\001\202\323\344\223\002.*,/v2/{name=projec" + + "ts/*/locations/*/services/*}\212\323\344\223\002.\022,\n\004na" + + "me\022$projects/*/locations/{location=*}/**" + + "\332A\004name\312A\022\n\007Service\022\007Service\022\220\001\n\014GetIamP" + + "olicy\022\".google.iam.v1.GetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"E\202\323\344\223\002?\022=/v2/{r" + + "esource=projects/*/locations/*/services/" + + "*}:getIamPolicy\022\223\001\n\014SetIamPolicy\022\".googl" + + "e.iam.v1.SetIamPolicyRequest\032\025.google.ia" + + "m.v1.Policy\"H\202\323\344\223\002B\"=/v2/{resource=proje" + + "cts/*/locations/*/services/*}:setIamPoli" + + "cy:\001*\022\271\001\n\022TestIamPermissions\022(.google.ia" + + "m.v1.TestIamPermissionsRequest\032).google." + + "iam.v1.TestIamPermissionsResponse\"N\202\323\344\223\002" + + "H\"C/v2/{resource=projects/*/locations/*/" + + "services/*}:testIamPermissions:\001*\032F\312A\022ru" + + "n.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformBT\n\027com.google." + + "cloud.run.v2B\014ServiceProtoP\001Z)cloud.goog" + + "le.com/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -285,6 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LatestCreatedRevision", "TrafficStatuses", "Uri", + "SatisfiesPzs", "Reconciling", "Etag", }); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java index a62caf4efa9e..db2f600d5c7e 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketAction.java @@ -72,7 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Port number to access on the container. Must be in the range 1 to 65535.
-   * If not specified, defaults to 8080.
+   * If not specified, defaults to the exposed port of the container, which is
+   * the value of container.ports[0].containerPort.
    * 
* * int32 port = 1; @@ -428,7 +429,8 @@ public Builder mergeFrom( * *
      * Port number to access on the container. Must be in the range 1 to 65535.
-     * If not specified, defaults to 8080.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
      * 
* * int32 port = 1; @@ -444,7 +446,8 @@ public int getPort() { * *
      * Port number to access on the container. Must be in the range 1 to 65535.
-     * If not specified, defaults to 8080.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
      * 
* * int32 port = 1; @@ -464,7 +467,8 @@ public Builder setPort(int value) { * *
      * Port number to access on the container. Must be in the range 1 to 65535.
-     * If not specified, defaults to 8080.
+     * If not specified, defaults to the exposed port of the container, which is
+     * the value of container.ports[0].containerPort.
      * 
* * int32 port = 1; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java index 48da67c94e4f..7b9f0bff16a1 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TCPSocketActionOrBuilder.java @@ -28,7 +28,8 @@ public interface TCPSocketActionOrBuilder * *
    * Port number to access on the container. Must be in the range 1 to 65535.
-   * If not specified, defaults to 8080.
+   * If not specified, defaults to the exposed port of the container, which is
+   * the value of container.ports[0].containerPort.
    * 
* * int32 port = 1; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java index c7bf4ddf8852..7ea47a8e45cb 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Task.java @@ -244,15 +244,15 @@ public int getLabelsCount() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -271,15 +271,15 @@ public java.util.Map getLabels() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -289,15 +289,15 @@ public java.util.Map getLabelsMap() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -314,15 +314,15 @@ public java.util.Map getLabelsMap() { * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -367,10 +367,14 @@ public int getAnnotationsCount() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -389,10 +393,14 @@ public java.util.Map getAnnotations() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -402,10 +410,14 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -422,10 +434,14 @@ public java.util.Map getAnnotationsMap() { * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -1571,6 +1587,24 @@ public com.google.protobuf.ByteString getLogUriBytes() { } } + public static final int SATISFIES_PZS_FIELD_NUMBER = 33; + private boolean satisfiesPzs_ = false; + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1722,6 +1756,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 32, logUri_); } + if (satisfiesPzs_ != false) { + output.writeBool(33, satisfiesPzs_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -1834,6 +1871,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, logUri_); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, satisfiesPzs_); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -1907,6 +1947,7 @@ public boolean equals(final java.lang.Object obj) { if (!getVpcAccess().equals(other.getVpcAccess())) return false; } if (!getLogUri().equals(other.getLogUri())) return false; + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2003,6 +2044,8 @@ public int hashCode() { } hash = (37 * hash) + LOG_URI_FIELD_NUMBER; hash = (53 * hash) + getLogUri().hashCode(); + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2247,6 +2290,7 @@ public Builder clear() { vpcAccessBuilder_ = null; } logUri_ = ""; + satisfiesPzs_ = false; etag_ = ""; return this; } @@ -2395,6 +2439,9 @@ private void buildPartial0(com.google.cloud.run.v2.Task result) { result.logUri_ = logUri_; } if (((from_bitField0_ & 0x10000000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x20000000) != 0)) { result.etag_ = etag_; } } @@ -2612,9 +2659,12 @@ public Builder mergeFrom(com.google.cloud.run.v2.Task other) { bitField0_ |= 0x08000000; onChanged(); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2844,10 +2894,16 @@ public Builder mergeFrom( bitField0_ |= 0x08000000; break; } // case 258 + case 264: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x10000000; + break; + } // case 264 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 794 default: @@ -3176,15 +3232,16 @@ public int getLabelsCount() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -3203,15 +3260,16 @@ public java.util.Map getLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -3221,15 +3279,16 @@ public java.util.Map getLabelsMap() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -3246,15 +3305,16 @@ public java.util.Map getLabelsMap() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -3277,15 +3337,16 @@ public Builder clearLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -3304,15 +3365,16 @@ public java.util.Map getMutableLabels() { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3329,15 +3391,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style labels for the resource.
-     * User-provided labels are shared with Google's billing system, so they can
-     * be used to filter, or break down billing charges by team, component,
-     * environment, state, etc. For more information, visit
+     * Output only. Unstructured key value map that can be used to organize and
+     * categorize objects. User-provided labels are shared with Google's billing
+     * system, so they can be used to filter, or break down billing charges by
+     * team, component, environment, state, etc. For more information, visit
      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
      * https://cloud.google.com/run/docs/configuring/labels
      * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -3377,10 +3440,14 @@ public int getAnnotationsCount() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public boolean containsAnnotations(java.lang.String key) { @@ -3399,10 +3466,14 @@ public java.util.Map getAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { @@ -3412,10 +3483,14 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -3432,10 +3507,14 @@ public java.util.Map getAnnotationsMap() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.lang.String getAnnotationsOrThrow(java.lang.String key) { @@ -3458,10 +3537,14 @@ public Builder clearAnnotations() { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeAnnotations(java.lang.String key) { if (key == null) { @@ -3480,10 +3563,14 @@ public java.util.Map getMutableAnnotations() * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAnnotations(java.lang.String key, java.lang.String value) { if (key == null) { @@ -3500,10 +3587,14 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * * *
-     * KRM-style annotations for the resource.
+     * Output only. Unstructured key value map that may
+     * be set by external tools to store and arbitrary metadata.
+     * They are not queryable and should be preserved
+     * when modifying objects.
      * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); @@ -7475,6 +7566,59 @@ public Builder setLogUriBytes(com.google.protobuf.ByteString value) { return this; } + private boolean satisfiesPzs_; + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x10000000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + private java.lang.Object etag_ = ""; /** * @@ -7540,7 +7684,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -7558,7 +7702,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } @@ -7581,7 +7725,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java index 41daa8d97963..5ec284b054a9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskOrBuilder.java @@ -95,30 +95,30 @@ public interface TaskOrBuilder * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getLabelsCount(); /** * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -128,30 +128,30 @@ public interface TaskOrBuilder * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map getLabelsMap(); /** * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -162,15 +162,15 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style labels for the resource.
-   * User-provided labels are shared with Google's billing system, so they can
-   * be used to filter, or break down billing charges by team, component,
-   * environment, state, etc. For more information, visit
+   * Output only. Unstructured key value map that can be used to organize and
+   * categorize objects. User-provided labels are shared with Google's billing
+   * system, so they can be used to filter, or break down billing charges by
+   * team, component, environment, state, etc. For more information, visit
    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
    * https://cloud.google.com/run/docs/configuring/labels
    * 
* - * map<string, string> labels = 4; + * map<string, string> labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -178,20 +178,28 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getAnnotationsCount(); /** * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ boolean containsAnnotations(java.lang.String key); /** Use {@link #getAnnotationsMap()} instead. */ @@ -201,20 +209,28 @@ java.lang.String getLabelsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map getAnnotationsMap(); /** * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ java.lang.String getAnnotationsOrDefault( @@ -225,10 +241,14 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * KRM-style annotations for the resource.
+   * Output only. Unstructured key value map that may
+   * be set by external tools to store and arbitrary metadata.
+   * They are not queryable and should be preserved
+   * when modifying objects.
    * 
* - * map<string, string> annotations = 5; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.lang.String getAnnotationsOrThrow(java.lang.String key); @@ -1032,6 +1052,19 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getLogUriBytes(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java index 29acdc07d6eb..299780db57dc 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskProto.java @@ -80,59 +80,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_dele" + "ted\030\004 \001(\010\"V\n\021ListTasksResponse\022(\n\005tasks\030" + "\001 \003(\0132\031.google.cloud.run.v2.Task\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\331\013\n\004Task\022\021\n\004name\030\001 \001(\t" + + "_page_token\030\002 \001(\t\"\377\013\n\004Task\022\021\n\004name\030\001 \001(\t" + "B\003\340A\003\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\027\n\ngeneration\030\003 " - + "\001(\003B\003\340A\003\0225\n\006labels\030\004 \003(\0132%.google.cloud." - + "run.v2.Task.LabelsEntry\022?\n\013annotations\030\005" - + " \003(\0132*.google.cloud.run.v2.Task.Annotati" - + "onsEntry\0224\n\013create_time\030\006 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0223\n\nstart_time\030\033 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0228\n\017c" - + "ompletion_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013delete_ti" - + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013expire_time\030\n \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022+\n\003job\030\014 \001(\tB\036\340A\003\372A\030\n\026ru" - + "n.googleapis.com/Job\0227\n\texecution\030\r \001(\tB" - + "$\340A\003\372A\036\n\034run.googleapis.com/Execution\0222\n" - + "\ncontainers\030\016 \003(\0132\036.google.cloud.run.v2." - + "Container\022,\n\007volumes\030\017 \003(\0132\033.google.clou" - + "d.run.v2.Volume\022\023\n\013max_retries\030\020 \001(\005\022*\n\007" - + "timeout\030\021 \001(\0132\031.google.protobuf.Duration" - + "\022\027\n\017service_account\030\022 \001(\t\022H\n\025execution_e" - + "nvironment\030\024 \001(\0162).google.cloud.run.v2.E" - + "xecutionEnvironment\022\030\n\013reconciling\030\025 \001(\010" - + "B\003\340A\003\0227\n\nconditions\030\026 \003(\0132\036.google.cloud" - + ".run.v2.ConditionB\003\340A\003\022 \n\023observed_gener" - + "ation\030\027 \001(\003B\003\340A\003\022\022\n\005index\030\030 \001(\005B\003\340A\003\022\024\n\007" - + "retried\030\031 \001(\005B\003\340A\003\022H\n\023last_attempt_resul" - + "t\030\032 \001(\0132&.google.cloud.run.v2.TaskAttemp" - + "tResultB\003\340A\003\022A\n\016encryption_key\030\034 \001(\tB)\340A" - + "\003\372A#\n!cloudkms.googleapis.com/CryptoKey\022" - + "7\n\nvpc_access\030\035 \001(\0132\036.google.cloud.run.v" - + "2.VpcAccessB\003\340A\003\022\024\n\007log_uri\030 \001(\tB\003\340A\003\022\021" - + "\n\004etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:w\352A" - + "t\n\027run.googleapis.com/Task\022Vprojects/{pr" - + "oject}/locations/{location}/jobs/{job}/e" - + "xecutions/{execution}/tasks/{task}R\001\001\"T\n" - + "\021TaskAttemptResult\022\'\n\006status\030\001 \001(\0132\022.goo" - + "gle.rpc.StatusB\003\340A\003\022\026\n\texit_code\030\002 \001(\005B\003" - + "\340A\0032\226\003\n\005Tasks\022\227\001\n\007GetTask\022#.google.cloud" - + ".run.v2.GetTaskRequest\032\031.google.cloud.ru" - + "n.v2.Task\"L\202\323\344\223\002?\022=/v2/{name=projects/*/" - + "locations/*/jobs/*/executions/*/tasks/*}" - + "\332A\004name\022\252\001\n\tListTasks\022%.google.cloud.run" - + ".v2.ListTasksRequest\032&.google.cloud.run." - + "v2.ListTasksResponse\"N\202\323\344\223\002?\022=/v2/{paren" - + "t=projects/*/locations/*/jobs/*/executio" - + "ns/*}/tasks\332A\006parent\032F\312A\022run.googleapis." - + "com\322A.https://www.googleapis.com/auth/cl" - + "oud-platformBQ\n\027com.google.cloud.run.v2B" - + "\tTaskProtoP\001Z)cloud.google.com/go/run/ap" - + "iv2/runpb;runpbb\006proto3" + + "\001(\003B\003\340A\003\022:\n\006labels\030\004 \003(\0132%.google.cloud." + + "run.v2.Task.LabelsEntryB\003\340A\003\022D\n\013annotati" + + "ons\030\005 \003(\0132*.google.cloud.run.v2.Task.Ann" + + "otationsEntryB\003\340A\003\0224\n\013create_time\030\006 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0223\n\nstar" + + "t_time\030\033 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0228\n\017completion_time\030\007 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013delete_time\030\t \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013expire_time\030\n \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022+\n\003job\030\014 \001(\tB\036" + + "\340A\003\372A\030\n\026run.googleapis.com/Job\0227\n\texecut" + + "ion\030\r \001(\tB$\340A\003\372A\036\n\034run.googleapis.com/Ex" + + "ecution\0222\n\ncontainers\030\016 \003(\0132\036.google.clo" + + "ud.run.v2.Container\022,\n\007volumes\030\017 \003(\0132\033.g" + + "oogle.cloud.run.v2.Volume\022\023\n\013max_retries" + + "\030\020 \001(\005\022*\n\007timeout\030\021 \001(\0132\031.google.protobu" + + "f.Duration\022\027\n\017service_account\030\022 \001(\t\022H\n\025e" + + "xecution_environment\030\024 \001(\0162).google.clou" + + "d.run.v2.ExecutionEnvironment\022\030\n\013reconci" + + "ling\030\025 \001(\010B\003\340A\003\0227\n\nconditions\030\026 \003(\0132\036.go" + + "ogle.cloud.run.v2.ConditionB\003\340A\003\022 \n\023obse" + + "rved_generation\030\027 \001(\003B\003\340A\003\022\022\n\005index\030\030 \001(" + + "\005B\003\340A\003\022\024\n\007retried\030\031 \001(\005B\003\340A\003\022H\n\023last_att" + + "empt_result\030\032 \001(\0132&.google.cloud.run.v2." + + "TaskAttemptResultB\003\340A\003\022A\n\016encryption_key" + + "\030\034 \001(\tB)\340A\003\372A#\n!cloudkms.googleapis.com/" + + "CryptoKey\0227\n\nvpc_access\030\035 \001(\0132\036.google.c" + + "loud.run.v2.VpcAccessB\003\340A\003\022\024\n\007log_uri\030 " + + "\001(\tB\003\340A\003\022\032\n\rsatisfies_pzs\030! \001(\010B\003\340A\003\022\021\n\004" + + "etag\030c \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:w\352At\n" + + "\027run.googleapis.com/Task\022Vprojects/{proj" + + "ect}/locations/{location}/jobs/{job}/exe" + + "cutions/{execution}/tasks/{task}R\001\001\"T\n\021T" + + "askAttemptResult\022\'\n\006status\030\001 \001(\0132\022.googl" + + "e.rpc.StatusB\003\340A\003\022\026\n\texit_code\030\002 \001(\005B\003\340A" + + "\0032\226\003\n\005Tasks\022\227\001\n\007GetTask\022#.google.cloud.r" + + "un.v2.GetTaskRequest\032\031.google.cloud.run." + + "v2.Task\"L\202\323\344\223\002?\022=/v2/{name=projects/*/lo" + + "cations/*/jobs/*/executions/*/tasks/*}\332A" + + "\004name\022\252\001\n\tListTasks\022%.google.cloud.run.v" + + "2.ListTasksRequest\032&.google.cloud.run.v2" + + ".ListTasksResponse\"N\202\323\344\223\002?\022=/v2/{parent=" + + "projects/*/locations/*/jobs/*/executions" + + "/*}/tasks\332A\006parent\032F\312A\022run.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformBQ\n\027com.google.cloud.run.v2B\tT" + + "askProtoP\001Z)cloud.google.com/go/run/apiv" + + "2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -206,6 +207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionKey", "VpcAccess", "LogUri", + "SatisfiesPzs", "Etag", }); internal_static_google_cloud_run_v2_Task_LabelsEntry_descriptor = diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java index 774789feaff2..4c4d89a77e3d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplate.java @@ -269,6 +269,7 @@ public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) { * *
    * Number of retries allowed per Task, before marking this Task failed.
+   * Defaults to 3.
    * 
* * int32 max_retries = 3; @@ -284,6 +285,7 @@ public boolean hasMaxRetries() { * *
    * Number of retries allowed per Task, before marking this Task failed.
+   * Defaults to 3.
    * 
* * int32 max_retries = 3; @@ -307,6 +309,7 @@ public int getMaxRetries() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -324,6 +327,7 @@ public boolean hasTimeout() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -341,6 +345,7 @@ public com.google.protobuf.Duration getTimeout() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -1914,6 +1919,7 @@ public java.util.List getVolumesBuilderL * *
      * Number of retries allowed per Task, before marking this Task failed.
+     * Defaults to 3.
      * 
* * int32 max_retries = 3; @@ -1928,6 +1934,7 @@ public boolean hasMaxRetries() { * *
      * Number of retries allowed per Task, before marking this Task failed.
+     * Defaults to 3.
      * 
* * int32 max_retries = 3; @@ -1945,6 +1952,7 @@ public int getMaxRetries() { * *
      * Number of retries allowed per Task, before marking this Task failed.
+     * Defaults to 3.
      * 
* * int32 max_retries = 3; @@ -1964,6 +1972,7 @@ public Builder setMaxRetries(int value) { * *
      * Number of retries allowed per Task, before marking this Task failed.
+     * Defaults to 3.
      * 
* * int32 max_retries = 3; @@ -1992,6 +2001,7 @@ public Builder clearMaxRetries() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2008,6 +2018,7 @@ public boolean hasTimeout() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2028,6 +2039,7 @@ public com.google.protobuf.Duration getTimeout() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2052,6 +2064,7 @@ public Builder setTimeout(com.google.protobuf.Duration value) { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2073,6 +2086,7 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2100,6 +2114,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2121,6 +2136,7 @@ public Builder clearTimeout() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2137,6 +2153,7 @@ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -2155,6 +2172,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java index 392404f57e07..f03d39edd81c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/TaskTemplateOrBuilder.java @@ -135,6 +135,7 @@ public interface TaskTemplateOrBuilder * *
    * Number of retries allowed per Task, before marking this Task failed.
+   * Defaults to 3.
    * 
* * int32 max_retries = 3; @@ -147,6 +148,7 @@ public interface TaskTemplateOrBuilder * *
    * Number of retries allowed per Task, before marking this Task failed.
+   * Defaults to 3.
    * 
* * int32 max_retries = 3; @@ -162,6 +164,7 @@ public interface TaskTemplateOrBuilder * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -176,6 +179,7 @@ public interface TaskTemplateOrBuilder * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; @@ -190,6 +194,7 @@ public interface TaskTemplateOrBuilder * Max allowed time duration the Task may be active before the system will * actively try to mark it failed and kill associated containers. This applies * per attempt of a task, meaning each retry can run for the full timeout. + * Defaults to 600 seconds. *
* * .google.protobuf.Duration timeout = 4; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java index 96d775609282..750583dba8a5 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequest.java @@ -140,8 +140,8 @@ public boolean getValidateOnly() { * *
    * If set to true, and if the Service does not exist, it will create a new
-   * one. Caller must have both create and update permissions for this call if
-   * this is set to true.
+   * one. The caller must have 'run.services.create' permissions if this is set
+   * to true and the Service does not exist.
    * 
* * bool allow_missing = 4; @@ -795,8 +795,8 @@ public Builder clearValidateOnly() { * *
      * If set to true, and if the Service does not exist, it will create a new
-     * one. Caller must have both create and update permissions for this call if
-     * this is set to true.
+     * one. The caller must have 'run.services.create' permissions if this is set
+     * to true and the Service does not exist.
      * 
* * bool allow_missing = 4; @@ -812,8 +812,8 @@ public boolean getAllowMissing() { * *
      * If set to true, and if the Service does not exist, it will create a new
-     * one. Caller must have both create and update permissions for this call if
-     * this is set to true.
+     * one. The caller must have 'run.services.create' permissions if this is set
+     * to true and the Service does not exist.
      * 
* * bool allow_missing = 4; @@ -833,8 +833,8 @@ public Builder setAllowMissing(boolean value) { * *
      * If set to true, and if the Service does not exist, it will create a new
-     * one. Caller must have both create and update permissions for this call if
-     * this is set to true.
+     * one. The caller must have 'run.services.create' permissions if this is set
+     * to true and the Service does not exist.
      * 
* * bool allow_missing = 4; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java index 6009b7fd456b..9c246b848f96 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/UpdateServiceRequestOrBuilder.java @@ -80,8 +80,8 @@ public interface UpdateServiceRequestOrBuilder * *
    * If set to true, and if the Service does not exist, it will create a new
-   * one. Caller must have both create and update permissions for this call if
-   * this is set to true.
+   * one. The caller must have 'run.services.create' permissions if this is set
+   * to true and the Service does not exist.
    * 
* * bool allow_missing = 4; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java index 4d4f8d9ca011..a98006648c3c 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/Volume.java @@ -170,7 +170,6 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Secret represents a secret that should populate this volume.
-   * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -186,7 +185,6 @@ public boolean hasSecret() { * *
    * Secret represents a secret that should populate this volume.
-   * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -205,7 +203,6 @@ public com.google.cloud.run.v2.SecretVolumeSource getSecret() { * *
    * Secret represents a secret that should populate this volume.
-   * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -830,7 +827,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -846,7 +842,6 @@ public boolean hasSecret() { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -872,7 +867,6 @@ public com.google.cloud.run.v2.SecretVolumeSource getSecret() { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -895,7 +889,6 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource value) { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -915,7 +908,6 @@ public Builder setSecret(com.google.cloud.run.v2.SecretVolumeSource.Builder buil * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -948,7 +940,6 @@ public Builder mergeSecret(com.google.cloud.run.v2.SecretVolumeSource value) { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -974,7 +965,6 @@ public Builder clearSecret() { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -987,7 +977,6 @@ public com.google.cloud.run.v2.SecretVolumeSource.Builder getSecretBuilder() { * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -1008,7 +997,6 @@ public com.google.cloud.run.v2.SecretVolumeSourceOrBuilder getSecretOrBuilder() * *
      * Secret represents a secret that should populate this volume.
-     * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
      * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java index d9311c199cf5..73fd277ec859 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeOrBuilder.java @@ -53,7 +53,6 @@ public interface VolumeOrBuilder * *
    * Secret represents a secret that should populate this volume.
-   * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -66,7 +65,6 @@ public interface VolumeOrBuilder * *
    * Secret represents a secret that should populate this volume.
-   * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; @@ -79,7 +77,6 @@ public interface VolumeOrBuilder * *
    * Secret represents a secret that should populate this volume.
-   * More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
    * 
* * .google.cloud.run.v2.SecretVolumeSource secret = 2; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto index 1aaecc02c601..cb6680a61b58 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/condition.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -169,6 +169,9 @@ message Condition { // The execution was cancelled by users. CANCELLED = 3; + + // The execution is in the process of being cancelled. + CANCELLING = 4; } // type is used to communicate the status of the reconciliation process. diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto index 1c2cf832f8e6..29b73a232fa9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -155,16 +155,20 @@ message Execution { // modifies the desired state. int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // KRM-style labels for the resource. - // User-provided labels are shared with Google's billing system, so they can - // be used to filter, or break down billing charges by team, component, - // environment, state, etc. For more information, visit + // Output only. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit // https://cloud.google.com/resource-manager/docs/creating-managing-labels or // https://cloud.google.com/run/docs/configuring/labels - map labels = 4; + map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // KRM-style annotations for the resource. - map annotations = 5; + // Output only. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + map annotations = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Represents time when the execution was acknowledged by the // execution controller. It is not guaranteed to be set in happens-before @@ -198,10 +202,14 @@ message Execution { google.protobuf.Timestamp expire_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Set the launch stage to a preview stage on write to allow use of preview - // features in that stage. On read, describes whether the resource uses - // preview features. Launch Stages are defined at [Google Cloud Platform - // Launch Stages](https://cloud.google.com/terms/launch-stages). + // The least stable launch stage needed to create this resource, as defined by + // [Google Cloud Platform Launch + // Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports + // `ALPHA`, `BETA`, and `GA`. + //

Note that this value might not be what was used + // as input. For example, if ALPHA was provided as input in the parent + // resource, but only BETA and GA-level features are were, this field will be + // BETA. google.api.LaunchStage launch_stage = 11; // Output only. The name of the parent Job. @@ -214,15 +222,12 @@ message Execution { // should run at any given time. Must be <= task_count. The actual number of // tasks running in steady state will be less than this number when // ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when - // the work left to do is less than max parallelism. More info: - // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + // the work left to do is less than max parallelism. int32 parallelism = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Specifies the desired number of tasks the execution should // run. Setting to 1 means that parallelism is limited to 1 and the success of // that task signals the success of the execution. - // More info: - // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ int32 task_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The template used to create tasks for this execution. @@ -263,6 +268,9 @@ message Execution { // Console. string log_uri = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzs = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto index 17e4a4439a15..55f465a5f43b 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/execution_template.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,7 +27,13 @@ option java_package = "com.google.cloud.run.v2"; // ExecutionTemplate describes the data an execution should have when created // from a template. message ExecutionTemplate { - // KRM-style labels for the resource. + // Unstructured key value map that can be used to organize and categorize + // objects. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. // //

Cloud Run API v2 does not support labels with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` @@ -35,12 +41,17 @@ message ExecutionTemplate { // corresponding field in v2 ExecutionTemplate. map labels = 1; - // KRM-style annotations for the resource. + // Unstructured key value map that may be set by external tools to store and + // arbitrary metadata. They are not queryable and should be preserved + // when modifying objects. // //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` // namespaces, and they will be rejected. All system annotations in v1 now // have a corresponding field in v2 ExecutionTemplate. + // + //

This field follows Kubernetes annotations' namespacing, limits, and + // rules. map annotations = 2; // Specifies the maximum desired number of tasks the execution should run at @@ -54,9 +65,7 @@ message ExecutionTemplate { // Specifies the desired number of tasks the execution should run. // Setting to 1 means that parallelism is limited to 1 and the success of - // that task signals the success of the execution. - // More info: - // https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + // that task signals the success of the execution. Defaults to 1. int32 task_count = 4; // Required. Describes the task(s) that will be created when executing an diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto index 5a04b5318804..b180eb506102 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,14 +16,13 @@ syntax = "proto3"; package google.cloud.run.v2; -import public "google/cloud/run/v2/execution.proto"; - import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/launch_stage.proto"; import "google/api/resource.proto"; import "google/cloud/run/v2/condition.proto"; +import "google/cloud/run/v2/execution.proto"; import "google/cloud/run/v2/execution_template.proto"; import "google/cloud/run/v2/vendor_settings.proto"; import "google/iam/v1/iam_policy.proto"; @@ -281,12 +280,13 @@ message Job { // modifies the desired state. int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // KRM-style labels for the resource. + // Unstructured key value map that can be used to organize and categorize + // objects. // User-provided labels are shared with Google's billing system, so they can // be used to filter, or break down billing charges by team, component, // environment, state, etc. For more information, visit // https://cloud.google.com/resource-manager/docs/creating-managing-labels or - // https://cloud.google.com/run/docs/configuring/labels + // https://cloud.google.com/run/docs/configuring/labels. // //

Cloud Run API v2 does not support labels with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` @@ -294,18 +294,18 @@ message Job { // corresponding field in v2 Job. map labels = 4; - // KRM-style annotations for the resource. Unstructured key value map that may + // Unstructured key value map that may // be set by external tools to store and arbitrary metadata. // They are not queryable and should be preserved // when modifying objects. // //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - // namespaces, and they will be rejected. All system annotations in v1 now - // have a corresponding field in v2 Job. + // namespaces, and they will be rejected on new resources. All system + // annotations in v1 now have a corresponding field in v2 Job. // //

This field follows Kubernetes annotations' namespacing, limits, and - // rules. More info: https://kubernetes.io/docs/user-guide/annotations + // rules. map annotations = 5; // Output only. The creation time. @@ -341,6 +341,12 @@ message Job { // Launch Stages](https://cloud.google.com/terms/launch-stages). // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA // is assumed. + // Set the launch stage to a preview stage on input to allow use of preview + // features in that stage. On read (or output), describes whether the resource + // uses preview features. + //

+ // For example, if ALPHA is provided as input, but only BETA and GA-level + // features are used, this field will be BETA on output. google.api.LaunchStage launch_stage = 14; // Settings for the Binary Authorization feature. @@ -394,6 +400,9 @@ message Job { // failure can be found in `terminal_condition` and `conditions`. bool reconciling = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzs = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto index b5b2353828eb..1d66551ac395 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/k8s.min.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,38 +51,21 @@ message Container { // Required. Name of the container image in Dockerhub, Google Artifact // Registry, or Google Container Registry. If the host is not provided, - // Dockerhub is assumed. More info: - // https://kubernetes.io/docs/concepts/containers/images + // Dockerhub is assumed. string image = 2 [(google.api.field_behavior) = REQUIRED]; // Entrypoint array. Not executed within a shell. // The docker image's ENTRYPOINT is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's - // environment. If a variable cannot be resolved, the reference in the input - // string will be unchanged. The $(VAR_NAME) syntax can be escaped with a - // double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // More info: - // https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell repeated string command = 3; // Arguments to the entrypoint. // The docker image's CMD is used if this is not provided. - // Variable references $(VAR_NAME) are expanded using the container's - // environment. If a variable cannot be resolved, the reference in the input - // string will be unchanged. The $(VAR_NAME) syntax can be escaped with a - // double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - // regardless of whether the variable exists or not. - // More info: - // https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell repeated string args = 4; // List of environment variables to set in the container. repeated EnvVar env = 5; // Compute Resource requirements by this container. - // More info: - // https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources ResourceRequirements resources = 6; // List of ports to expose from the container. Only a single port can be @@ -103,30 +86,34 @@ message Container { // Periodic probe of container liveness. // Container will be restarted if the probe fails. - // More info: - // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Probe liveness_probe = 10; // Startup probe of application within the container. // All other probes are disabled if a startup probe is provided, until it // succeeds. Container will not be added to service endpoints if the probe // fails. - // More info: - // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes Probe startup_probe = 11; } // ResourceRequirements describes the compute resource requirements. message ResourceRequirements { - // Only memory and CPU are supported. Note: The only - // supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU - // requires at least 2Gi of memory. The values of the map is string form of - // the 'quantity' k8s type: - // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go + // Only ´memory´ and 'cpu' are supported. + // + //

Notes: + // * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 + // CPU requires at least 2Gi of memory. For more information, go to + // https://cloud.google.com/run/docs/configuring/cpu. + // * For supported 'memory' values and syntax, go to + // https://cloud.google.com/run/docs/configuring/memory-limits map limits = 1; // Determines whether CPU should be throttled or not outside of requests. bool cpu_idle = 2; + + // Determines whether CPU should be boosted on startup of a new container + // instance above the requested CPU threshold, this can help reduce cold-start + // latency. + bool startup_cpu_boost = 3; } // EnvVar represents an environment variable present in a Container. @@ -209,7 +196,6 @@ message Volume { oneof volume_type { // Secret represents a secret that should populate this volume. - // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret SecretVolumeSource secret = 2; // For Cloud SQL volumes, contains the specific instances that should be @@ -306,15 +292,11 @@ message Probe { // initiated. // Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe // is 3600. Maximum value for startup probe is 240. - // More info: - // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes int32 initial_delay_seconds = 1; // Number of seconds after which the probe times out. // Defaults to 1 second. Minimum value is 1. Maximum value is 3600. // Must be smaller than period_seconds. - // More info: - // https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes int32 timeout_seconds = 2; // How often (in seconds) to perform the probe. @@ -349,6 +331,11 @@ message HTTPGetAction { // Custom headers to set in the request. HTTP allows repeated headers. repeated HTTPHeader http_headers = 4; + + // Port number to access on the container. Must be in the range 1 to 65535. + // If not specified, defaults to the exposed port of the container, which is + // the value of container.ports[0].containerPort. + int32 port = 5; } // HTTPHeader describes a custom header to be used in HTTP probes @@ -363,14 +350,16 @@ message HTTPHeader { // TCPSocketAction describes an action based on opening a socket message TCPSocketAction { // Port number to access on the container. Must be in the range 1 to 65535. - // If not specified, defaults to 8080. + // If not specified, defaults to the exposed port of the container, which is + // the value of container.ports[0].containerPort. int32 port = 1; } // GRPCAction describes an action involving a GRPC port. message GRPCAction { // Port number of the gRPC service. Number must be in the range 1 to 65535. - // If not specified, defaults to 8080. + // If not specified, defaults to the exposed port of the container, which is + // the value of container.ports[0].containerPort. int32 port = 1; // Service is the name of the service to place in the gRPC HealthCheckRequest diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto index 753776b47d1b..bdaf9e739927 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -176,16 +176,20 @@ message Revision { // modifies the desired state. int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // KRM-style labels for the resource. - // User-provided labels are shared with Google's billing system, so they can - // be used to filter, or break down billing charges by team, component, - // environment, state, etc. For more information, visit + // Output only. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit // https://cloud.google.com/resource-manager/docs/creating-managing-labels or - // https://cloud.google.com/run/docs/configuring/labels - map labels = 4; - - // KRM-style annotations for the resource. - map annotations = 5; + // https://cloud.google.com/run/docs/configuring/labels. + map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + map annotations = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time. google.protobuf.Timestamp create_time = 6 @@ -206,10 +210,14 @@ message Revision { google.protobuf.Timestamp expire_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Set the launch stage to a preview stage on write to allow use of preview - // features in that stage. On read, describes whether the resource uses - // preview features. Launch Stages are defined at [Google Cloud Platform - // Launch Stages](https://cloud.google.com/terms/launch-stages). + // The least stable launch stage needed to create this resource, as defined by + // [Google Cloud Platform Launch + // Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports + // `ALPHA`, `BETA`, and `GA`. + //

Note that this value might not be what was used + // as input. For example, if ALPHA was provided as input in the parent + // resource, but only BETA and GA-level features are were, this field will be + // BETA. google.api.LaunchStage launch_stage = 10; // Output only. The name of the parent service. @@ -279,6 +287,12 @@ message Revision { // Output only. The Google Console URI to obtain logs for the Revision. string log_uri = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzs = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enable session affinity. + bool session_affinity = 38; + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto index 7dd2b895d437..cc13e2d8509a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/revision_template.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,7 +35,13 @@ message RevisionTemplate { (google.api.resource_reference) = { type: "run.googleapis.com/Revision" } ]; - // KRM-style labels for the resource. + // Unstructured key value map that can be used to organize and categorize + // objects. + // User-provided labels are shared with Google's billing system, so they can + // be used to filter, or break down billing charges by team, component, + // environment, state, etc. For more information, visit + // https://cloud.google.com/resource-manager/docs/creating-managing-labels or + // https://cloud.google.com/run/docs/configuring/labels. // //

Cloud Run API v2 does not support labels with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` @@ -43,12 +49,17 @@ message RevisionTemplate { // corresponding field in v2 RevisionTemplate. map labels = 2; - // KRM-style annotations for the resource. + // Unstructured key value map that may be set by external tools to store and + // arbitrary metadata. They are not queryable and should be preserved + // when modifying objects. // //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` // namespaces, and they will be rejected. All system annotations in v1 now // have a corresponding field in v2 RevisionTemplate. + // + //

This field follows Kubernetes annotations' namespacing, limits, and + // rules. map annotations = 3; // Scaling settings for this Revision. @@ -86,4 +97,7 @@ message RevisionTemplate { // Sets the maximum number of requests that each serving instance can receive. int32 max_instance_request_concurrency = 15; + + // Enable session affinity. + bool session_affinity = 19; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto index 6620d79d2a5a..3fee68d2bb71 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -197,8 +197,8 @@ message UpdateServiceRequest { bool validate_only = 3; // If set to true, and if the Service does not exist, it will create a new - // one. Caller must have both create and update permissions for this call if - // this is set to true. + // one. The caller must have 'run.services.create' permissions if this is set + // to true and the Service does not exist. bool allow_missing = 4; } @@ -301,13 +301,13 @@ message Service { // APIs, its JSON representation will be a `string` instead of an `integer`. int64 generation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Map of string keys and values that can be used to organize and categorize + // Unstructured key value map that can be used to organize and categorize // objects. // User-provided labels are shared with Google's billing system, so they can // be used to filter, or break down billing charges by team, component, // environment, state, etc. For more information, visit // https://cloud.google.com/resource-manager/docs/creating-managing-labels or - // https://cloud.google.com/run/docs/configuring/labels + // https://cloud.google.com/run/docs/configuring/labels. // //

Cloud Run API v2 does not support labels with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` @@ -321,12 +321,11 @@ message Service { // //

Cloud Run API v2 does not support annotations with `run.googleapis.com`, // `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` - // namespaces, and they will be rejected. All system annotations in v1 now - // have a corresponding field in v2 Service. + // namespaces, and they will be rejected in new resources. All system + // annotations in v1 now have a corresponding field in v2 Service. // //

This field follows Kubernetes - // annotations' namespacing, limits, and rules. More info: - // https://kubernetes.io/docs/user-guide/annotations + // annotations' namespacing, limits, and rules. map annotations = 6; // Output only. The creation time. @@ -367,6 +366,12 @@ message Service { // Launch Stages](https://cloud.google.com/terms/launch-stages). // Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA // is assumed. + // Set the launch stage to a preview stage on input to allow use of preview + // features in that stage. On read (or output), describes whether the resource + // uses preview features. + //

+ // For example, if ALPHA is provided as input, but only BETA and GA-level + // features are used, this field will be BETA on output. google.api.LaunchStage launch_stage = 16; // Settings for the Binary Authorization feature. @@ -425,6 +430,9 @@ message Service { // Output only. The main URI in which this Service is serving traffic. string uri = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzs = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Returns true if the Service is currently being acted upon by // the system to bring it into the desired state. // diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto index 45584e3ce203..7741c3016175 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -118,16 +118,20 @@ message Task { // modifies the desired state. int64 generation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // KRM-style labels for the resource. - // User-provided labels are shared with Google's billing system, so they can - // be used to filter, or break down billing charges by team, component, - // environment, state, etc. For more information, visit + // Output only. Unstructured key value map that can be used to organize and + // categorize objects. User-provided labels are shared with Google's billing + // system, so they can be used to filter, or break down billing charges by + // team, component, environment, state, etc. For more information, visit // https://cloud.google.com/resource-manager/docs/creating-managing-labels or // https://cloud.google.com/run/docs/configuring/labels - map labels = 4; + map labels = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // KRM-style annotations for the resource. - map annotations = 5; + // Output only. Unstructured key value map that may + // be set by external tools to store and arbitrary metadata. + // They are not queryable and should be preserved + // when modifying objects. + map annotations = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Represents time when the task was created by the job // controller. It is not guaranteed to be set in happens-before order across @@ -241,6 +245,9 @@ message Task { // Console. string log_uri = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Reserved for future use. + bool satisfies_pzs = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A system-generated fingerprint for this version of the // resource. May be used to detect modification conflict during updates. string etag = 99 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto index f19ee7960ce2..586c44956275 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/task_template.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,12 +38,14 @@ message TaskTemplate { oneof retries { // Number of retries allowed per Task, before marking this Task failed. + // Defaults to 3. int32 max_retries = 3; } // Max allowed time duration the Task may be active before the system will // actively try to mark it failed and kill associated containers. This applies // per attempt of a task, meaning each retry can run for the full timeout. + // Defaults to 600 seconds. google.protobuf.Duration timeout = 4; // Email address of the IAM service account associated with the Task of a diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto index b1836ad14601..adc7f05e2e87 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/traffic_target.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto index 1b166ec62ca0..389b61532295 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/vendor_settings.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.