diff --git a/generation_config.yaml b/generation_config.yaml index d1666e6e0078..4de31477e58a 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.64.1 -googleapis_commitish: bfdeefc22ce661d0b0efb68c83c2afd5a3aa9c2c +googleapis_commitish: c9578f6385fe0fb9067c5dba8d7cdda39efac0ff libraries_bom_version: 26.72.0 # the libraries are ordered with respect to library name, which is diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java index a172368e7f8a..39fa362d805f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/Cluster.java @@ -6560,7 +6560,7 @@ public boolean getReconciling() { * * *
-   * Input only. Initial user to setup during cluster creation. Required.
+   * Input only. Initial user to setup during cluster creation.
    * If used in `RestoreCluster` this is ignored.
    * 
* @@ -6579,7 +6579,7 @@ public boolean hasInitialUser() { * * *
-   * Input only. Initial user to setup during cluster creation. Required.
+   * Input only. Initial user to setup during cluster creation.
    * If used in `RestoreCluster` this is ignored.
    * 
* @@ -6600,7 +6600,7 @@ public com.google.cloud.alloydb.v1.UserPassword getInitialUser() { * * *
-   * Input only. Initial user to setup during cluster creation. Required.
+   * Input only. Initial user to setup during cluster creation.
    * If used in `RestoreCluster` this is ignored.
    * 
* @@ -11936,7 +11936,7 @@ public Builder clearReconciling() { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -11954,7 +11954,7 @@ public boolean hasInitialUser() { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -11978,7 +11978,7 @@ public com.google.cloud.alloydb.v1.UserPassword getInitialUser() { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -12004,7 +12004,7 @@ public Builder setInitialUser(com.google.cloud.alloydb.v1.UserPassword value) { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -12028,7 +12028,7 @@ public Builder setInitialUser( * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -12059,7 +12059,7 @@ public Builder mergeInitialUser(com.google.cloud.alloydb.v1.UserPassword value) * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -12082,7 +12082,7 @@ public Builder clearInitialUser() { * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -12100,7 +12100,7 @@ public com.google.cloud.alloydb.v1.UserPassword.Builder getInitialUserBuilder() * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* @@ -12122,7 +12122,7 @@ public com.google.cloud.alloydb.v1.UserPasswordOrBuilder getInitialUserOrBuilder * * *
-     * Input only. Initial user to setup during cluster creation. Required.
+     * Input only. Initial user to setup during cluster creation.
      * If used in `RestoreCluster` this is ignored.
      * 
* diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java index a0d1f4a35693..269ecb95299f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/java/com/google/cloud/alloydb/v1/ClusterOrBuilder.java @@ -718,7 +718,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Input only. Initial user to setup during cluster creation. Required.
+   * Input only. Initial user to setup during cluster creation.
    * If used in `RestoreCluster` this is ignored.
    * 
* @@ -734,7 +734,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Input only. Initial user to setup during cluster creation. Required.
+   * Input only. Initial user to setup during cluster creation.
    * If used in `RestoreCluster` this is ignored.
    * 
* @@ -750,7 +750,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Input only. Initial user to setup during cluster creation. Required.
+   * Input only. Initial user to setup during cluster creation.
    * If used in `RestoreCluster` this is ignored.
    * 
* diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto index 03f7bc192743..8eebb0445dbb 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto +++ b/java-alloydb/proto-google-cloud-alloydb-v1/src/main/proto/google/cloud/alloydb/v1/resources.proto @@ -693,7 +693,7 @@ message Cluster { // system actions like failover or maintenance. bool reconciling = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Input only. Initial user to setup during cluster creation. Required. + // Input only. Initial user to setup during cluster creation. // If used in `RestoreCluster` this is ignored. UserPassword initial_user = 14 [(google.api.field_behavior) = INPUT_ONLY]; diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java index bc98a5e77e4d..435f4add802c 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/BuildsClient.java @@ -46,6 +46,9 @@ * .setWorkerPool( * BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) * .addAllTags(new ArrayList()) + * .setMachineType("machineType-218117087") + * .setReleaseTrack(LaunchStage.forNumber(0)) + * .setClient("client-1357712437") * .build(); * SubmitBuildResponse response = buildsClient.submitBuild(request); * } @@ -197,6 +200,9 @@ public BuildsStub getStub() { * .setWorkerPool( * BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) * .addAllTags(new ArrayList()) + * .setMachineType("machineType-218117087") + * .setReleaseTrack(LaunchStage.forNumber(0)) + * .setClient("client-1357712437") * .build(); * SubmitBuildResponse response = buildsClient.submitBuild(request); * } @@ -230,6 +236,9 @@ public final SubmitBuildResponse submitBuild(SubmitBuildRequest request) { * .setWorkerPool( * BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) * .addAllTags(new ArrayList()) + * .setMachineType("machineType-218117087") + * .setReleaseTrack(LaunchStage.forNumber(0)) + * .setClient("client-1357712437") * .build(); * ApiFuture future = * buildsClient.submitBuildCallable().futureCall(request); diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java index 3786ca693c8e..8d757c9e4f40 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/package-info.java @@ -40,6 +40,9 @@ * .setWorkerPool( * BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) * .addAllTags(new ArrayList()) + * .setMachineType("machineType-218117087") + * .setReleaseTrack(LaunchStage.forNumber(0)) + * .setClient("client-1357712437") * .build(); * SubmitBuildResponse response = buildsClient.submitBuild(request); * } diff --git a/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json b/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json index 86447c5a5553..bc93d0d3ebb3 100644 --- a/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json +++ b/java-run/google-cloud-run/src/main/resources/META-INF/native-image/com.google.cloud.run.v2/reflect-config.json @@ -1718,6 +1718,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.run.v2.Service$MultiRegionSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.run.v2.Service$MultiRegionSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.run.v2.ServiceMesh", "queryAllDeclaredConstructors": true, @@ -1763,6 +1781,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.run.v2.SourceCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.run.v2.SourceCode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.run.v2.SourceCode$CloudStorageSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.run.v2.SourceCode$CloudStorageSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.run.v2.StorageSource", "queryAllDeclaredConstructors": true, diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientHttpJsonTest.java index b501d18e8f63..7541d3d85d29 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.run.v2; +import com.google.api.LaunchStage; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.testing.MockHttpService; @@ -90,6 +91,9 @@ public void submitBuildTest() throws Exception { .setWorkerPool( BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) .addAllTags(new ArrayList()) + .setMachineType("machineType-218117087") + .setReleaseTrack(LaunchStage.forNumber(0)) + .setClient("client-1357712437") .build(); SubmitBuildResponse actualResponse = client.submitBuild(request); @@ -126,6 +130,9 @@ public void submitBuildExceptionTest() throws Exception { .setWorkerPool( BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) .addAllTags(new ArrayList()) + .setMachineType("machineType-218117087") + .setReleaseTrack(LaunchStage.forNumber(0)) + .setClient("client-1357712437") .build(); client.submitBuild(request); Assert.fail("No exception raised"); diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientTest.java index b72f149923d2..81e91a3ba48f 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/BuildsClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.run.v2; +import com.google.api.LaunchStage; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.testing.LocalChannelProvider; @@ -98,6 +99,9 @@ public void submitBuildTest() throws Exception { .setWorkerPool( BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) .addAllTags(new ArrayList()) + .setMachineType("machineType-218117087") + .setReleaseTrack(LaunchStage.forNumber(0)) + .setClient("client-1357712437") .build(); SubmitBuildResponse actualResponse = client.submitBuild(request); @@ -115,6 +119,9 @@ public void submitBuildTest() throws Exception { Assert.assertEquals(request.getServiceAccount(), actualRequest.getServiceAccount()); Assert.assertEquals(request.getWorkerPool(), actualRequest.getWorkerPool()); Assert.assertEquals(request.getTagsList(), actualRequest.getTagsList()); + Assert.assertEquals(request.getMachineType(), actualRequest.getMachineType()); + Assert.assertEquals(request.getReleaseTrack(), actualRequest.getReleaseTrack()); + Assert.assertEquals(request.getClient(), actualRequest.getClient()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -135,6 +142,9 @@ public void submitBuildExceptionTest() throws Exception { .setWorkerPool( BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) .addAllTags(new ArrayList()) + .setMachineType("machineType-218117087") + .setReleaseTrack(LaunchStage.forNumber(0)) + .setClient("client-1357712437") .build(); client.submitBuild(request); Assert.fail("No exception raised"); 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 f925f6cbd1a0..caa93a411182 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 @@ -118,6 +118,8 @@ public void createServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -129,6 +131,7 @@ public void createServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -207,6 +210,8 @@ public void createServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -218,6 +223,7 @@ public void createServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -296,6 +302,8 @@ public void getServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -307,6 +315,7 @@ public void getServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -376,6 +385,8 @@ public void getServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -387,6 +398,7 @@ public void getServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -556,6 +568,8 @@ public void updateServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -567,6 +581,7 @@ public void updateServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -604,6 +619,8 @@ public void updateServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -615,6 +632,7 @@ public void updateServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -671,6 +689,8 @@ public void updateServiceExceptionTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -682,6 +702,7 @@ public void updateServiceExceptionTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -719,6 +740,8 @@ public void updateServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -730,6 +753,7 @@ public void updateServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -767,6 +791,8 @@ public void updateServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -778,6 +804,7 @@ public void updateServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -835,6 +862,8 @@ public void updateServiceExceptionTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -846,6 +875,7 @@ public void updateServiceExceptionTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -884,6 +914,8 @@ public void deleteServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -895,6 +927,7 @@ public void deleteServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -969,6 +1002,8 @@ public void deleteServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -980,6 +1015,7 @@ public void deleteServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") 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 acc0ace26b1b..3293f658c23f 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 @@ -126,6 +126,8 @@ public void createServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -137,6 +139,7 @@ public void createServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -214,6 +217,8 @@ public void createServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -225,6 +230,7 @@ public void createServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -302,6 +308,8 @@ public void getServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -313,6 +321,7 @@ public void getServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -376,6 +385,8 @@ public void getServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -387,6 +398,7 @@ public void getServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -538,6 +550,8 @@ public void updateServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -549,6 +563,7 @@ public void updateServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -620,6 +635,8 @@ public void updateServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -631,6 +648,7 @@ public void updateServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -705,6 +723,8 @@ public void deleteServiceTest() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -716,6 +736,7 @@ public void deleteServiceTest() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") @@ -787,6 +808,8 @@ public void deleteServiceTest2() throws Exception { .setInvokerIamDisabled(true) .setDefaultUriDisabled(true) .addAllUrls(new ArrayList()) + .setIapEnabled(true) + .setMultiRegionSettings(Service.MultiRegionSettings.newBuilder().build()) .addAllCustomAudiences(new ArrayList()) .setObservedGeneration(900833007) .setTerminalCondition(Condition.newBuilder().build()) @@ -798,6 +821,7 @@ public void deleteServiceTest2() throws Exception { .addAllTrafficStatuses(new ArrayList()) .setUri("uri116076") .setSatisfiesPzs(true) + .setThreatDetectionEnabled(true) .setBuildConfig(BuildConfig.newBuilder().build()) .setReconciling(true) .setEtag("etag3123477") diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientHttpJsonTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientHttpJsonTest.java index 6637c22539c7..45caebffe9d9 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientHttpJsonTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientHttpJsonTest.java @@ -123,6 +123,7 @@ public void createWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -207,6 +208,7 @@ public void createWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -291,6 +293,7 @@ public void getWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -365,6 +368,7 @@ public void getWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -539,6 +543,7 @@ public void updateWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -581,6 +586,7 @@ public void updateWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -642,6 +648,7 @@ public void updateWorkerPoolExceptionTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -684,6 +691,7 @@ public void updateWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -726,6 +734,7 @@ public void updateWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -788,6 +797,7 @@ public void updateWorkerPoolExceptionTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -831,6 +841,7 @@ public void deleteWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -910,6 +921,7 @@ public void deleteWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) diff --git a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientTest.java b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientTest.java index 3c7624545cfc..95098819afd0 100644 --- a/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientTest.java +++ b/java-run/google-cloud-run/src/test/java/com/google/cloud/run/v2/WorkerPoolsClientTest.java @@ -130,6 +130,7 @@ public void createWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -213,6 +214,7 @@ public void createWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -296,6 +298,7 @@ public void getWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -364,6 +367,7 @@ public void getWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -520,6 +524,7 @@ public void updateWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -596,6 +601,7 @@ public void updateWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -675,6 +681,7 @@ public void deleteWorkerPoolTest() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) @@ -751,6 +758,7 @@ public void deleteWorkerPoolTest2() throws Exception { .setLatestCreatedRevision( RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString()) .addAllInstanceSplitStatuses(new ArrayList()) + .setThreatDetectionEnabled(true) .addAllCustomAudiences(new ArrayList()) .setSatisfiesPzs(true) .setReconciling(true) diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildProto.java index fefc2dba1e40..9cd377d56222 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/BuildProto.java @@ -65,30 +65,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/cloud/run/v2/build.proto\022\023googl" + "e.cloud.run.v2\032\034google/api/annotations.p" + "roto\032\027google/api/client.proto\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\032#google/longrunning/operations.proto\"\277\006\n" + + "i/field_behavior.proto\032\035google/api/launc" + + "h_stage.proto\032\031google/api/resource.proto" + + "\032#google/longrunning/operations.proto\"\244\007\n" + "\022SubmitBuildRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022A\n" + "\016storage_source\030\002" + " \001(\0132\".google.cloud.run.v2.StorageSourceB\003\340A\002H\000\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\002\022R\n" - + "\017buildpack_build\030\004" - + " \001(\01327.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuildH\001\022K\n" - + "\014docker_build\030\005" - + " \001(\01323.google.cloud.run.v2.SubmitBuildRequest.DockerBuildH\001\022\034\n" + + "\017buildpack_build\030\004 \001(\01327." + + "google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuildH\001\022K\n" + + "\014docker_build\030\005 \001(\01323" + + ".google.cloud.run.v2.SubmitBuildRequest.DockerBuildH\001\022\034\n" + "\017service_account\030\006 \001(\tB\003\340A\001\022F\n" + "\013worker_pool\030\007 \001(\tB1\340A\001\372A+\n" + ")cloudbuild.googleapis.com/BuildWorkerPool\022\021\n" - + "\004tags\030\010 \003(\tB\003\340A\001\032\r\n" + + "\004tags\030\010 \003(\tB\003\340A\001\022\031\n" + + "\014machine_type\030\t \001(\tB\003\340A\001\0223\n\r" + + "release_track\030\n" + + " \001(\0162\027.google.api.LaunchStageB\003\340A\001\022\023\n" + + "\006client\030\013 \001(\tB\003\340A\001\032\r\n" + "\013DockerBuild\032\367\002\n" + "\017BuildpacksBuild\022\023\n" + "\007runtime\030\001 \001(\tB\002\030\001\022\034\n" + "\017function_target\030\002 \001(\tB\003\340A\001\022\034\n" + "\017cache_image_uri\030\003 \001(\tB\003\340A\001\022\027\n\n" + "base_image\030\004 \001(\tB\003\340A\001\022u\n" - + "\025environment_variables\030\005 \003(\0132Q.go" - + "ogle.cloud.run.v2.SubmitBuildRequest.Bui" - + "ldpacksBuild.EnvironmentVariablesEntryB\003\340A\001\022%\n" + + "\025environment_variables\030\005 \003(\0132Q.google.cloud.run.v2.SubmitBuil" + + "dRequest.BuildpacksBuild.EnvironmentVariablesEntryB\003\340A\001\022%\n" + "\030enable_automatic_updates\030\006 \001(\010B\003\340A\001\022\037\n" + "\022project_descriptor\030\007 \001(\tB\003\340A\001\032;\n" + "\031EnvironmentVariablesEntry\022\013\n" @@ -105,15 +109,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006object\030\002 \001(\tB\003\340A\002\022\027\n\n" + "generation\030\003 \001(\003B\003\340A\0012\361\001\n" + "\006Builds\022\236\001\n" - + "\013SubmitBuild\022\'.google.cloud.run.v2.SubmitBuildReq" - + "uest\032(.google.cloud.run.v2.SubmitBuildRe" - + "sponse\"<\202\323\344\223\0026\"1/v2/{parent=projects/*/l" - + "ocations/*}/builds:submit:\001*\032F\312A\022run.goo" - + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\303\001\n" + + "\013SubmitBuild\022\'.google.cloud.run.v2.Su" + + "bmitBuildRequest\032(.google.cloud.run.v2.S" + + "ubmitBuildResponse\"<\202\323\344\223\0026\"1/v2/{parent=" + + "projects/*/locations/*}/builds:submit:\001*" + + "\032F\312A\022run.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\303\001\n" + "\027com.google.cloud.run.v2B\n" + "BuildProtoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpb\352An\n" - + ")cloudbuild.googleapis.com/BuildWorkerPool\022Aproject" - + "s/{project}/locations/{location}/workerPools/{worker_pool}b\006proto3" + + ")cloudbuild.googleapis.com/BuildWorkerPool\022Aprojects/{project}/locations/{locat" + + "ion}/workerPools/{worker_pool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -122,6 +126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor 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.longrunning.OperationsProto.getDescriptor(), }); @@ -139,6 +144,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccount", "WorkerPool", "Tags", + "MachineType", + "ReleaseTrack", + "Client", "Source", "BuildType", }); @@ -201,6 +209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor 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.longrunning.OperationsProto.getDescriptor(); } 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 dba39ceced1e..4700f3d4ec5b 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 @@ -1386,6 +1386,16 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { * DELETED = 5; */ DELETED(5), + /** + * + * + *
+     * A delayed execution is waiting for a start time.
+     * 
+ * + * DELAYED_START_PENDING = 6; + */ + DELAYED_START_PENDING(6), UNRECOGNIZED(-1), ; @@ -1456,6 +1466,17 @@ public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETED_VALUE = 5; + /** + * + * + *
+     * A delayed execution is waiting for a start time.
+     * 
+ * + * DELAYED_START_PENDING = 6; + */ + public static final int DELAYED_START_PENDING_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1492,6 +1513,8 @@ public static ExecutionReason forNumber(int value) { return CANCELLING; case 5: return DELETED; + case 6: + return DELAYED_START_PENDING; 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 f887e5f8b0a0..4d59bfc47b48 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 @@ -44,7 +44,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "#google/cloud/run/v2/condition.proto\022\023g" + "oogle.cloud.run.v2\032\037google/api/field_beh" - + "avior.proto\032\037google/protobuf/timestamp.proto\"\307\014\n" + + "avior.proto\032\037google/protobuf/timestamp.proto\"\342\014\n" + "\tCondition\022\014\n" + "\004type\030\001 \001(\t\0223\n" + "\005state\030\002 \001(\0162$.google.cloud.run.v2.Condition.State\022\017\n" @@ -101,17 +101,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "NO_DEPLOYMENT\020\n" + "\022\030\n" + "\024HEALTH_CHECK_SKIPPED\020\013\022\031\n" - + "\025MIN_INSTANCES_WARMING\020\014\"\233\001\n" + + "\025MIN_INSTANCES_WARMING\020\014\"\266\001\n" + "\017ExecutionReason\022\036\n" + "\032EXECUTION_REASON_UNDEFINED\020\000\022$\n" + " JOB_STATUS_SERVICE_POLLING_ERROR\020\001\022\026\n" + "\022NON_ZERO_EXIT_CODE\020\002\022\r\n" + "\tCANCELLED\020\003\022\016\n\n" + "CANCELLING\020\004\022\013\n" - + "\007DELETED\020\005B\t\n" + + "\007DELETED\020\005\022\031\n" + + "\025DELAYED_START_PENDING\020\006B\t\n" + "\007reasonsBV\n" - + "\027com.google.cloud.run.v2B\016ConditionProtoP\001Z)cloud.google.com/go" - + "/run/apiv2/runpb;runpbb\006proto3" + + "\027com.google.cloud.run.v2B\016ConditionProtoP\001Z)cloud.google.com/go/run/apiv2/ru" + + "npb;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 7211394ab06e..eea72fb2a595 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 @@ -188,6 +188,65 @@ public com.google.protobuf.ByteString getImageBytes() { } } + public static final int SOURCE_CODE_FIELD_NUMBER = 17; + private com.google.cloud.run.v2.SourceCode sourceCode_; + + /** + * + * + *
+   * Optional. Location of the source.
+   * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceCode field is set. + */ + @java.lang.Override + public boolean hasSourceCode() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Location of the source.
+   * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceCode. + */ + @java.lang.Override + public com.google.cloud.run.v2.SourceCode getSourceCode() { + return sourceCode_ == null + ? com.google.cloud.run.v2.SourceCode.getDefaultInstance() + : sourceCode_; + } + + /** + * + * + *
+   * Optional. Location of the source.
+   * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.run.v2.SourceCodeOrBuilder getSourceCodeOrBuilder() { + return sourceCode_ == null + ? com.google.cloud.run.v2.SourceCode.getDefaultInstance() + : sourceCode_; + } + public static final int COMMAND_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -423,7 +482,7 @@ public com.google.cloud.run.v2.EnvVarOrBuilder getEnvOrBuilder(int index) { */ @java.lang.Override public boolean hasResources() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -711,7 +770,7 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { */ @java.lang.Override public boolean hasLivenessProbe() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -769,7 +828,7 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() { */ @java.lang.Override public boolean hasStartupProbe() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -953,7 +1012,7 @@ public com.google.protobuf.ByteString getBaseImageUriBytes() { */ @java.lang.Override public boolean hasBuildInfo() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1019,7 +1078,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < env_.size(); i++) { output.writeMessage(5, env_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getResources()); } for (int i = 0; i < ports_.size(); i++) { @@ -1031,10 +1090,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, workingDir_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(10, getLivenessProbe()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(11, getStartupProbe()); } for (int i = 0; i < dependsOn_.size(); i++) { @@ -1043,9 +1102,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, baseImageUri_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(15, getBuildInfo()); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(17, getSourceCode()); + } getUnknownFields().writeTo(output); } @@ -1080,7 +1142,7 @@ public int getSerializedSize() { for (int i = 0; i < env_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, env_.get(i)); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getResources()); } for (int i = 0; i < ports_.size(); i++) { @@ -1092,10 +1154,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, workingDir_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLivenessProbe()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getStartupProbe()); } { @@ -1109,9 +1171,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseImageUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, baseImageUri_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getBuildInfo()); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getSourceCode()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1129,6 +1194,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getImage().equals(other.getImage())) return false; + if (hasSourceCode() != other.hasSourceCode()) return false; + if (hasSourceCode()) { + if (!getSourceCode().equals(other.getSourceCode())) return false; + } if (!getCommandList().equals(other.getCommandList())) return false; if (!getArgsList().equals(other.getArgsList())) return false; if (!getEnvList().equals(other.getEnvList())) return false; @@ -1168,6 +1237,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + IMAGE_FIELD_NUMBER; hash = (53 * hash) + getImage().hashCode(); + if (hasSourceCode()) { + hash = (37 * hash) + SOURCE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getSourceCode().hashCode(); + } if (getCommandCount() > 0) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommandList().hashCode(); @@ -1356,6 +1429,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSourceCodeFieldBuilder(); getEnvFieldBuilder(); getResourcesFieldBuilder(); getPortsFieldBuilder(); @@ -1372,6 +1446,11 @@ public Builder clear() { bitField0_ = 0; name_ = ""; image_ = ""; + sourceCode_ = null; + if (sourceCodeBuilder_ != null) { + sourceCodeBuilder_.dispose(); + sourceCodeBuilder_ = null; + } command_ = com.google.protobuf.LazyStringArrayList.emptyList(); args_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (envBuilder_ == null) { @@ -1380,7 +1459,7 @@ public Builder clear() { env_ = null; envBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); resources_ = null; if (resourcesBuilder_ != null) { resourcesBuilder_.dispose(); @@ -1392,14 +1471,14 @@ public Builder clear() { ports_ = null; portsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); if (volumeMountsBuilder_ == null) { volumeMounts_ = java.util.Collections.emptyList(); } else { volumeMounts_ = null; volumeMountsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); workingDir_ = ""; livenessProbe_ = null; if (livenessProbeBuilder_ != null) { @@ -1454,27 +1533,27 @@ public com.google.cloud.run.v2.Container buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.run.v2.Container result) { if (envBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } result.env_ = env_; } else { result.env_ = envBuilder_.build(); } if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } result.ports_ = ports_; } else { result.ports_ = portsBuilder_.build(); } if (volumeMountsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { volumeMounts_ = java.util.Collections.unmodifiableList(volumeMounts_); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.volumeMounts_ = volumeMounts_; } else { @@ -1490,42 +1569,46 @@ private void buildPartial0(com.google.cloud.run.v2.Container result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.image_ = image_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceCode_ = sourceCodeBuilder_ == null ? sourceCode_ : sourceCodeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { command_.makeImmutable(); result.command_ = command_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { args_.makeImmutable(); result.args_ = args_; } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.resources_ = resourcesBuilder_ == null ? resources_ : resourcesBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.workingDir_ = workingDir_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.livenessProbe_ = livenessProbeBuilder_ == null ? livenessProbe_ : livenessProbeBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.startupProbe_ = startupProbeBuilder_ == null ? startupProbe_ : startupProbeBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { dependsOn_.makeImmutable(); result.dependsOn_ = dependsOn_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.baseImageUri_ = baseImageUri_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.buildInfo_ = buildInfoBuilder_ == null ? buildInfo_ : buildInfoBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -1585,10 +1668,13 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { bitField0_ |= 0x00000002; onChanged(); } + if (other.hasSourceCode()) { + mergeSourceCode(other.getSourceCode()); + } if (!other.command_.isEmpty()) { if (command_.isEmpty()) { command_ = other.command_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } else { ensureCommandIsMutable(); command_.addAll(other.command_); @@ -1598,7 +1684,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } else { ensureArgsIsMutable(); args_.addAll(other.args_); @@ -1609,7 +1695,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { if (!other.env_.isEmpty()) { if (env_.isEmpty()) { env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureEnvIsMutable(); env_.addAll(other.env_); @@ -1622,7 +1708,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { envBuilder_.dispose(); envBuilder_ = null; env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); envBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEnvFieldBuilder() @@ -1639,7 +1725,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { if (!other.ports_.isEmpty()) { if (ports_.isEmpty()) { ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensurePortsIsMutable(); ports_.addAll(other.ports_); @@ -1652,7 +1738,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { portsBuilder_.dispose(); portsBuilder_ = null; ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); portsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPortsFieldBuilder() @@ -1666,7 +1752,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { if (!other.volumeMounts_.isEmpty()) { if (volumeMounts_.isEmpty()) { volumeMounts_ = other.volumeMounts_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureVolumeMountsIsMutable(); volumeMounts_.addAll(other.volumeMounts_); @@ -1679,7 +1765,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { volumeMountsBuilder_.dispose(); volumeMountsBuilder_ = null; volumeMounts_ = other.volumeMounts_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); volumeMountsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVolumeMountsFieldBuilder() @@ -1691,7 +1777,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { } if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasLivenessProbe()) { @@ -1703,7 +1789,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { if (!other.dependsOn_.isEmpty()) { if (dependsOn_.isEmpty()) { dependsOn_ = other.dependsOn_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } else { ensureDependsOnIsMutable(); dependsOn_.addAll(other.dependsOn_); @@ -1712,7 +1798,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Container other) { } if (!other.getBaseImageUri().isEmpty()) { baseImageUri_ = other.baseImageUri_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (other.hasBuildInfo()) { @@ -1785,7 +1871,7 @@ public Builder mergeFrom( case 50: { input.readMessage(getResourcesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -1817,19 +1903,19 @@ public Builder mergeFrom( case 74: { workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: { input.readMessage(getLivenessProbeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 82 case 90: { input.readMessage(getStartupProbeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: @@ -1842,15 +1928,21 @@ public Builder mergeFrom( case 106: { baseImageUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 106 case 122: { input.readMessage(getBuildInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 122 + case 138: + { + input.readMessage(getSourceCodeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2102,6 +2194,218 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.run.v2.SourceCode sourceCode_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SourceCode, + com.google.cloud.run.v2.SourceCode.Builder, + com.google.cloud.run.v2.SourceCodeOrBuilder> + sourceCodeBuilder_; + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceCode field is set. + */ + public boolean hasSourceCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceCode. + */ + public com.google.cloud.run.v2.SourceCode getSourceCode() { + if (sourceCodeBuilder_ == null) { + return sourceCode_ == null + ? com.google.cloud.run.v2.SourceCode.getDefaultInstance() + : sourceCode_; + } else { + return sourceCodeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceCode(com.google.cloud.run.v2.SourceCode value) { + if (sourceCodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceCode_ = value; + } else { + sourceCodeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSourceCode(com.google.cloud.run.v2.SourceCode.Builder builderForValue) { + if (sourceCodeBuilder_ == null) { + sourceCode_ = builderForValue.build(); + } else { + sourceCodeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSourceCode(com.google.cloud.run.v2.SourceCode value) { + if (sourceCodeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && sourceCode_ != null + && sourceCode_ != com.google.cloud.run.v2.SourceCode.getDefaultInstance()) { + getSourceCodeBuilder().mergeFrom(value); + } else { + sourceCode_ = value; + } + } else { + sourceCodeBuilder_.mergeFrom(value); + } + if (sourceCode_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSourceCode() { + bitField0_ = (bitField0_ & ~0x00000004); + sourceCode_ = null; + if (sourceCodeBuilder_ != null) { + sourceCodeBuilder_.dispose(); + sourceCodeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.run.v2.SourceCode.Builder getSourceCodeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSourceCodeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.run.v2.SourceCodeOrBuilder getSourceCodeOrBuilder() { + if (sourceCodeBuilder_ != null) { + return sourceCodeBuilder_.getMessageOrBuilder(); + } else { + return sourceCode_ == null + ? com.google.cloud.run.v2.SourceCode.getDefaultInstance() + : sourceCode_; + } + } + + /** + * + * + *
+     * Optional. Location of the source.
+     * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SourceCode, + com.google.cloud.run.v2.SourceCode.Builder, + com.google.cloud.run.v2.SourceCodeOrBuilder> + getSourceCodeFieldBuilder() { + if (sourceCodeBuilder_ == null) { + sourceCodeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SourceCode, + com.google.cloud.run.v2.SourceCode.Builder, + com.google.cloud.run.v2.SourceCodeOrBuilder>( + getSourceCode(), getParentForChildren(), isClean()); + sourceCode_ = null; + } + return sourceCodeBuilder_; + } + private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -2109,7 +2413,7 @@ private void ensureCommandIsMutable() { if (!command_.isModifiable()) { command_ = new com.google.protobuf.LazyStringArrayList(command_); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; } /** @@ -2199,7 +2503,7 @@ public Builder setCommand(int index, java.lang.String value) { } ensureCommandIsMutable(); command_.set(index, value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2223,7 +2527,7 @@ public Builder addCommand(java.lang.String value) { } ensureCommandIsMutable(); command_.add(value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2244,7 +2548,7 @@ public Builder addCommand(java.lang.String value) { public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2263,7 +2567,7 @@ public Builder addAllCommand(java.lang.Iterable values) { */ public Builder clearCommand() { command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; @@ -2289,7 +2593,7 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2301,7 +2605,7 @@ private void ensureArgsIsMutable() { if (!args_.isModifiable()) { args_ = new com.google.protobuf.LazyStringArrayList(args_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; } /** @@ -2391,7 +2695,7 @@ public Builder setArgs(int index, java.lang.String value) { } ensureArgsIsMutable(); args_.set(index, value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2415,7 +2719,7 @@ public Builder addArgs(java.lang.String value) { } ensureArgsIsMutable(); args_.add(value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2436,7 +2740,7 @@ public Builder addArgs(java.lang.String value) { public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2455,7 +2759,7 @@ public Builder addAllArgs(java.lang.Iterable values) { */ public Builder clearArgs() { args_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); ; onChanged(); return this; @@ -2481,7 +2785,7 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2489,9 +2793,9 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { private java.util.List env_ = java.util.Collections.emptyList(); private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; } } @@ -2713,7 +3017,7 @@ public Builder addAllEnv(java.lang.Iterable getEnvBuilderList( com.google.cloud.run.v2.EnvVar, com.google.cloud.run.v2.EnvVar.Builder, com.google.cloud.run.v2.EnvVarOrBuilder>( - env_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + env_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); env_ = null; } return envBuilder_; @@ -2864,7 +3168,7 @@ public java.util.List getEnvBuilderList( * @return Whether the resources field is set. */ public boolean hasResources() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2906,7 +3210,7 @@ public Builder setResources(com.google.cloud.run.v2.ResourceRequirements value) } else { resourcesBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2927,7 +3231,7 @@ public Builder setResources( } else { resourcesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2943,7 +3247,7 @@ public Builder setResources( */ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value) { if (resourcesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && resources_ != null && resources_ != com.google.cloud.run.v2.ResourceRequirements.getDefaultInstance()) { getResourcesBuilder().mergeFrom(value); @@ -2954,7 +3258,7 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value resourcesBuilder_.mergeFrom(value); } if (resources_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2970,7 +3274,7 @@ public Builder mergeResources(com.google.cloud.run.v2.ResourceRequirements value * .google.cloud.run.v2.ResourceRequirements resources = 6; */ public Builder clearResources() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); resources_ = null; if (resourcesBuilder_ != null) { resourcesBuilder_.dispose(); @@ -2990,7 +3294,7 @@ public Builder clearResources() { * .google.cloud.run.v2.ResourceRequirements resources = 6; */ public com.google.cloud.run.v2.ResourceRequirements.Builder getResourcesBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getResourcesFieldBuilder().getBuilder(); } @@ -3044,9 +3348,9 @@ public com.google.cloud.run.v2.ResourceRequirementsOrBuilder getResourcesOrBuild java.util.Collections.emptyList(); private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } } @@ -3326,7 +3630,7 @@ public Builder addAllPorts( public Builder clearPorts() { if (portsBuilder_ == null) { ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { portsBuilder_.clear(); @@ -3489,7 +3793,7 @@ public java.util.List getPortsBui com.google.cloud.run.v2.ContainerPort, com.google.cloud.run.v2.ContainerPort.Builder, com.google.cloud.run.v2.ContainerPortOrBuilder>( - ports_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + ports_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); ports_ = null; } return portsBuilder_; @@ -3499,9 +3803,9 @@ public java.util.List getPortsBui java.util.Collections.emptyList(); private void ensureVolumeMountsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { volumeMounts_ = new java.util.ArrayList(volumeMounts_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } @@ -3726,7 +4030,7 @@ public Builder addAllVolumeMounts( public Builder clearVolumeMounts() { if (volumeMountsBuilder_ == null) { volumeMounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { volumeMountsBuilder_.clear(); @@ -3855,7 +4159,7 @@ public com.google.cloud.run.v2.VolumeMount.Builder addVolumeMountsBuilder(int in com.google.cloud.run.v2.VolumeMount, com.google.cloud.run.v2.VolumeMount.Builder, com.google.cloud.run.v2.VolumeMountOrBuilder>( - volumeMounts_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + volumeMounts_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); volumeMounts_ = null; } return volumeMountsBuilder_; @@ -3932,7 +4236,7 @@ public Builder setWorkingDir(java.lang.String value) { throw new NullPointerException(); } workingDir_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3952,7 +4256,7 @@ public Builder setWorkingDir(java.lang.String value) { */ public Builder clearWorkingDir() { workingDir_ = getDefaultInstance().getWorkingDir(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3977,7 +4281,7 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); workingDir_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4002,7 +4306,7 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { * @return Whether the livenessProbe field is set. */ public boolean hasLivenessProbe() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -4046,7 +4350,7 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe value) { } else { livenessProbeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4067,7 +4371,7 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe.Builder builderFor } else { livenessProbeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4084,7 +4388,7 @@ public Builder setLivenessProbe(com.google.cloud.run.v2.Probe.Builder builderFor */ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) { if (livenessProbeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && livenessProbe_ != null && livenessProbe_ != com.google.cloud.run.v2.Probe.getDefaultInstance()) { getLivenessProbeBuilder().mergeFrom(value); @@ -4095,7 +4399,7 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) { livenessProbeBuilder_.mergeFrom(value); } if (livenessProbe_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -4112,7 +4416,7 @@ public Builder mergeLivenessProbe(com.google.cloud.run.v2.Probe value) { * .google.cloud.run.v2.Probe liveness_probe = 10; */ public Builder clearLivenessProbe() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); livenessProbe_ = null; if (livenessProbeBuilder_ != null) { livenessProbeBuilder_.dispose(); @@ -4133,7 +4437,7 @@ public Builder clearLivenessProbe() { * .google.cloud.run.v2.Probe liveness_probe = 10; */ public com.google.cloud.run.v2.Probe.Builder getLivenessProbeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getLivenessProbeFieldBuilder().getBuilder(); } @@ -4207,7 +4511,7 @@ public com.google.cloud.run.v2.ProbeOrBuilder getLivenessProbeOrBuilder() { * @return Whether the startupProbe field is set. */ public boolean hasStartupProbe() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -4255,7 +4559,7 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe value) { } else { startupProbeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4278,7 +4582,7 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe.Builder builderForV } else { startupProbeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4297,7 +4601,7 @@ public Builder setStartupProbe(com.google.cloud.run.v2.Probe.Builder builderForV */ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) { if (startupProbeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && startupProbe_ != null && startupProbe_ != com.google.cloud.run.v2.Probe.getDefaultInstance()) { getStartupProbeBuilder().mergeFrom(value); @@ -4308,7 +4612,7 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) { startupProbeBuilder_.mergeFrom(value); } if (startupProbe_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4327,7 +4631,7 @@ public Builder mergeStartupProbe(com.google.cloud.run.v2.Probe value) { * .google.cloud.run.v2.Probe startup_probe = 11; */ public Builder clearStartupProbe() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); startupProbe_ = null; if (startupProbeBuilder_ != null) { startupProbeBuilder_.dispose(); @@ -4350,7 +4654,7 @@ public Builder clearStartupProbe() { * .google.cloud.run.v2.Probe startup_probe = 11; */ public com.google.cloud.run.v2.Probe.Builder getStartupProbeBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getStartupProbeFieldBuilder().getBuilder(); } @@ -4413,7 +4717,7 @@ private void ensureDependsOnIsMutable() { if (!dependsOn_.isModifiable()) { dependsOn_ = new com.google.protobuf.LazyStringArrayList(dependsOn_); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } /** @@ -4498,7 +4802,7 @@ public Builder setDependsOn(int index, java.lang.String value) { } ensureDependsOnIsMutable(); dependsOn_.set(index, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4521,7 +4825,7 @@ public Builder addDependsOn(java.lang.String value) { } ensureDependsOnIsMutable(); dependsOn_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4541,7 +4845,7 @@ public Builder addDependsOn(java.lang.String value) { public Builder addAllDependsOn(java.lang.Iterable values) { ensureDependsOnIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependsOn_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4559,7 +4863,7 @@ public Builder addAllDependsOn(java.lang.Iterable values) { */ public Builder clearDependsOn() { dependsOn_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); ; onChanged(); return this; @@ -4584,7 +4888,7 @@ public Builder addDependsOnBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureDependsOnIsMutable(); dependsOn_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4657,7 +4961,7 @@ public Builder setBaseImageUri(java.lang.String value) { throw new NullPointerException(); } baseImageUri_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4676,7 +4980,7 @@ public Builder setBaseImageUri(java.lang.String value) { */ public Builder clearBaseImageUri() { baseImageUri_ = getDefaultInstance().getBaseImageUri(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4700,7 +5004,7 @@ public Builder setBaseImageUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); baseImageUri_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4726,7 +5030,7 @@ public Builder setBaseImageUriBytes(com.google.protobuf.ByteString value) { * @return Whether the buildInfo field is set. */ public boolean hasBuildInfo() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -4772,7 +5076,7 @@ public Builder setBuildInfo(com.google.cloud.run.v2.BuildInfo value) { } else { buildInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4794,7 +5098,7 @@ public Builder setBuildInfo(com.google.cloud.run.v2.BuildInfo.Builder builderFor } else { buildInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4812,7 +5116,7 @@ public Builder setBuildInfo(com.google.cloud.run.v2.BuildInfo.Builder builderFor */ public Builder mergeBuildInfo(com.google.cloud.run.v2.BuildInfo value) { if (buildInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && buildInfo_ != null && buildInfo_ != com.google.cloud.run.v2.BuildInfo.getDefaultInstance()) { getBuildInfoBuilder().mergeFrom(value); @@ -4823,7 +5127,7 @@ public Builder mergeBuildInfo(com.google.cloud.run.v2.BuildInfo value) { buildInfoBuilder_.mergeFrom(value); } if (buildInfo_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4841,7 +5145,7 @@ public Builder mergeBuildInfo(com.google.cloud.run.v2.BuildInfo value) { * */ public Builder clearBuildInfo() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); buildInfo_ = null; if (buildInfoBuilder_ != null) { buildInfoBuilder_.dispose(); @@ -4863,7 +5167,7 @@ public Builder clearBuildInfo() { * */ public com.google.cloud.run.v2.BuildInfo.Builder getBuildInfoBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getBuildInfoFieldBuilder().getBuilder(); } 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 6797b9fad20a..68bdb58a7aa8 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 @@ -80,6 +80,49 @@ public interface ContainerOrBuilder */ com.google.protobuf.ByteString getImageBytes(); + /** + * + * + *
+   * Optional. Location of the source.
+   * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sourceCode field is set. + */ + boolean hasSourceCode(); + + /** + * + * + *
+   * Optional. Location of the source.
+   * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sourceCode. + */ + com.google.cloud.run.v2.SourceCode getSourceCode(); + + /** + * + * + *
+   * Optional. Location of the source.
+   * 
+ * + * + * .google.cloud.run.v2.SourceCode source_code = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.run.v2.SourceCodeOrBuilder getSourceCodeOrBuilder(); + /** * * 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 0131616f85d3..e2b9d387ac96 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 @@ -1653,11 +1653,11 @@ public com.google.protobuf.ByteString getRunExecutionTokenBytes() { * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -1678,11 +1678,11 @@ public java.lang.String getEtag() { * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -7011,11 +7011,11 @@ public Builder setRunExecutionTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -7035,11 +7035,11 @@ public java.lang.String getEtag() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -7059,11 +7059,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The etag to set. * @return This builder for chaining. @@ -7082,11 +7082,11 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -7101,11 +7101,11 @@ public Builder clearEtag() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for etag to set. * @return This builder for chaining. 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 13a4a7fd5814..d65e523a633a 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 @@ -1066,11 +1066,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -1080,11 +1080,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ 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 895d5bde97fb..5a5ad2acb3d8 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 @@ -178,7 +178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "satisfies_pzs\030\031 \001(\010B\003\340A\003\022\037\n" + "\025start_execution_token\030\032 \001(\tH\000\022\035\n" + "\023run_execution_token\030\033 \001(\tH\000\022\021\n" - + "\004etag\030c \001(\tB\003\340A\003\032-\n" + + "\004etag\030c \001(\tB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0322\n" 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 ae142cb5acab..101f3f2900c5 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 @@ -112,6 +112,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_run_v2_BuildInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_run_v2_BuildInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_SourceCode_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_SourceCode_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -123,10 +131,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "!google/cloud/run/v2/k8s.min.proto\022\023goo" - + "gle.cloud.run.v2\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\201\004\n" + + "gle.cloud.run.v2\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"\274\004\n" + "\tContainer\022\014\n" + "\004name\030\001 \001(\t\022\022\n" - + "\005image\030\002 \001(\tB\003\340A\002\022\017\n" + + "\005image\030\002 \001(\tB\003\340A\002\0229\n" + + "\013source_code\030\021" + + " \001(\0132\037.google.cloud.run.v2.SourceCodeB\003\340A\001\022\017\n" + "\007command\030\003 \003(\t\022\014\n" + "\004args\030\004 \003(\t\022(\n" + "\003env\030\005 \003(\0132\033.google.cloud.run.v2.EnvVar\022<\n" @@ -143,8 +153,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "build_info\030\017" + " \001(\0132\036.google.cloud.run.v2.BuildInfoB\003\340A\003\"\271\001\n" + "\024ResourceRequirements\022E\n" - + "\006limits\030\001 \003(\01325.goog" - + "le.cloud.run.v2.ResourceRequirements.LimitsEntry\022\020\n" + + "\006limits\030\001" + + " \003(\01325.google.cloud.run.v2.ResourceRequirements.LimitsEntry\022\020\n" + "\010cpu_idle\030\002 \001(\010\022\031\n" + "\021startup_cpu_boost\030\003 \001(\010\032-\n" + "\013LimitsEntry\022\013\n" @@ -165,15 +175,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*secretmanager.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" + + "\016container_port\030\003 \001(\005\"P\n" + "\013VolumeMount\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n" - + "mount_path\030\003 \001(\tB\003\340A\002\"\324\002\n" + + "mount_path\030\003 \001(\tB\003\340A\002\022\025\n" + + "\010sub_path\030\004 \001(\tB\003\340A\001\"\324\002\n" + "\006Volume\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0229\n" + "\006secret\030\002 \001(\0132\'.google.cloud.run.v2.SecretVolumeSourceH\000\022C\n" - + "\022cloud_sql_instance\030\003" - + " \001(\0132%.google.cloud.run.v2.CloudSqlInstanceH\000\022>\n" + + "\022cloud_sql_instance\030\003 \001(\0132%." + + "google.cloud.run.v2.CloudSqlInstanceH\000\022>\n" + "\tempty_dir\030\004 \001(\0132).google.cloud.run.v2.EmptyDirVolumeSourceH\000\0223\n" + "\003nfs\030\005 \001(\0132$.google.cloud.run.v2.NFSVolumeSourceH\000\0223\n" + "\003gcs\030\006 \001(\0132$.google.cloud.run.v2.GCSVolumeSourceH\000B\r\n" @@ -210,8 +221,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021failure_threshold\030\004 \001(\005B\003\340A\001\022;\n" + "\010http_get\030\005" + " \001(\0132\".google.cloud.run.v2.HTTPGetActionB\003\340A\001H\000\022?\n\n" - + "tcp_socket\030\006 " - + "\001(\0132$.google.cloud.run.v2.TCPSocketActionB\003\340A\001H\000\0224\n" + + "tcp_socket\030\006" + + " \001(\0132$.google.cloud.run.v2.TCPSocketActionB\003\340A\001H\000\0224\n" + "\004grpc\030\007" + " \001(\0132\037.google.cloud.run.v2.GRPCActionB\003\340A\001H\000B\014\n\n" + "probe_type\"q\n\r" @@ -230,16 +241,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007service\030\002 \001(\tB\003\340A\001\"G\n" + "\tBuildInfo\022\034\n" + "\017function_target\030\001 \001(\tB\003\340A\003\022\034\n" - + "\017source_location\030\002 \001(\tB\003\340A\003B\351\003\n" - + "\027com.google.cloud.run.v2B\013" - + "K8sMinProtoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpb\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locat" - + "ions/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352AJ\n" + + "\017source_location\030\002 \001(\tB\003\340A\003\"\310\001\n\n" + + "SourceCode\022R\n" + + "\024cloud_storage_source\030\001" + + " \001(\01322.google.cloud.run.v2.SourceCode.CloudStorageSourceH\000\032W\n" + + "\022CloudStorageSource\022\023\n" + + "\006bucket\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006object\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "generation\030\003 \001(\003B\003\340A\001B\r\n" + + "\013source_typeB\351\003\n" + + "\027com.google.cloud.run" + + ".v2B\013K8sMinProtoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpb\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/" + + "locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352AJ\n" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapis.com/SecretVersion\0226projects/{proje" - + "ct}/secrets/{secret}/versions/{version}\352Ad\n" - + "\"vpcaccess.googleapis.com/Connector\022>projects/{project}/locations/{location}/" - + "connectors/{connector}b\006proto3" + + "*secretmanager.googleapis.com/SecretVersion\0226projects/{" + + "project}/secrets/{secret}/versions/{version}\352Ad\n" + + "\"vpcaccess.googleapis.com/Connector\022>projects/{project}/locations/{locat" + + "ion}/connectors/{connector}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -256,6 +275,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Image", + "SourceCode", "Command", "Args", "Env", @@ -323,7 +343,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_VolumeMount_descriptor, new java.lang.String[] { - "Name", "MountPath", + "Name", "MountPath", "SubPath", }); internal_static_google_cloud_run_v2_Volume_descriptor = getDescriptor().getMessageTypes().get(7); @@ -436,6 +456,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FunctionTarget", "SourceLocation", }); + internal_static_google_cloud_run_v2_SourceCode_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_run_v2_SourceCode_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SourceCode_descriptor, + new java.lang.String[] { + "CloudStorageSource", "SourceType", + }); + internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_descriptor = + internal_static_google_cloud_run_v2_SourceCode_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_descriptor, + new java.lang.String[] { + "Bucket", "Object", "Generation", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java index 8411c634de49..3d94b6380cbe 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponse.java @@ -42,6 +42,7 @@ private ListServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ListServicesResponse() { services_ = java.util.Collections.emptyList(); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -196,6 +197,78 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -216,6 +289,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -231,6 +307,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -249,6 +333,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServicesList().equals(other.getServicesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,6 +351,10 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -414,6 +503,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -466,6 +556,10 @@ private void buildPartial0(com.google.cloud.run.v2.ListServicesResponse result) if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } } @java.lang.Override @@ -545,6 +639,16 @@ public Builder mergeFrom(com.google.cloud.run.v2.ListServicesResponse other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -589,6 +693,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1087,6 +1198,198 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. For global requests, returns the list of regions that could
+     * not be reached within the deadline.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + 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/ListServicesResponseOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java index 59294829cdf8..7f7ebca15e31 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ListServicesResponseOrBuilder.java @@ -106,4 +106,62 @@ public interface ListServicesResponseOrBuilder * @return The bytes for nextPageToken. */ com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Output only. For global requests, returns the list of regions that could
+   * not be reached within the deadline.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); } 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 e517ea856c70..b82e96b4c6e3 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 @@ -105,7 +105,7 @@ public int getLimitsCount() { * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -113,6 +113,7 @@ public int getLimitsCount() {
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -136,7 +137,7 @@ public java.util.Map getLimits() { * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -144,6 +145,7 @@ public java.util.Map getLimits() {
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -157,7 +159,7 @@ public java.util.Map getLimitsMap() { * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -165,6 +167,7 @@ public java.util.Map getLimitsMap() {
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -185,7 +188,7 @@ public java.util.Map getLimitsMap() { * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -193,6 +196,7 @@ public java.util.Map getLimitsMap() {
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -701,7 +705,7 @@ public int getLimitsCount() { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -709,6 +713,7 @@ public int getLimitsCount() {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; @@ -732,7 +737,7 @@ public java.util.Map getLimits() { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -740,6 +745,7 @@ public java.util.Map getLimits() {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; @@ -753,7 +759,7 @@ public java.util.Map getLimitsMap() { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -761,6 +767,7 @@ public java.util.Map getLimitsMap() {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; @@ -781,7 +788,7 @@ public java.util.Map getLimitsMap() { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -789,6 +796,7 @@ public java.util.Map getLimitsMap() {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; @@ -815,7 +823,7 @@ public Builder clearLimits() { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -823,6 +831,7 @@ public Builder clearLimits() {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; @@ -846,7 +855,7 @@ public java.util.Map getMutableLimits() { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -854,6 +863,7 @@ public java.util.Map getMutableLimits() {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; @@ -874,7 +884,7 @@ public Builder putLimits(java.lang.String key, java.lang.String value) { * * *
-     * Only `memory` and `cpu` keys in the map are supported.
+     * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
      *
      * <p>Notes:
      *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -882,6 +892,7 @@ public Builder putLimits(java.lang.String key, java.lang.String value) {
      * 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
+     *  * The only supported 'nvidia.com/gpu' value is '1'.
      * 
* * map<string, string> limits = 1; 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 3bfc2d2eeb16..f80ad2fa463c 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 @@ -28,7 +28,7 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -36,6 +36,7 @@ public interface ResourceRequirementsOrBuilder
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -46,7 +47,7 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -54,6 +55,7 @@ public interface ResourceRequirementsOrBuilder
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -68,7 +70,7 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -76,6 +78,7 @@ public interface ResourceRequirementsOrBuilder
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -86,7 +89,7 @@ public interface ResourceRequirementsOrBuilder * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -94,6 +97,7 @@ public interface ResourceRequirementsOrBuilder
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; @@ -108,7 +112,7 @@ java.lang.String getLimitsOrDefault( * * *
-   * Only `memory` and `cpu` keys in the map are supported.
+   * Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
    *
    * <p>Notes:
    *  * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -116,6 +120,7 @@ java.lang.String getLimitsOrDefault(
    * 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
+   *  * The only supported 'nvidia.com/gpu' value is '1'.
    * 
* * map<string, string> limits = 1; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java index 90d51cac478c..fb7c7467d935 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSource.java @@ -136,7 +136,7 @@ public com.google.protobuf.ByteString getSecretBytes() { * *
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -154,7 +154,7 @@ public java.util.List getItemsList() {
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -173,7 +173,7 @@ public java.util.List getItemsList() {
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -191,7 +191,7 @@ public int getItemsCount() {
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -209,7 +209,7 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -841,7 +841,7 @@ private void ensureItemsIsMutable() {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -862,7 +862,7 @@ public java.util.List getItemsList() {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -883,7 +883,7 @@ public int getItemsCount() {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -904,7 +904,7 @@ public com.google.cloud.run.v2.VersionToPath getItems(int index) {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -931,7 +931,7 @@ public Builder setItems(int index, com.google.cloud.run.v2.VersionToPath value)
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -956,7 +956,7 @@ public Builder setItems(
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -983,7 +983,7 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath value) {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1010,7 +1010,7 @@ public Builder addItems(int index, com.google.cloud.run.v2.VersionToPath value)
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1034,7 +1034,7 @@ public Builder addItems(com.google.cloud.run.v2.VersionToPath.Builder builderFor
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1059,7 +1059,7 @@ public Builder addItems(
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1084,7 +1084,7 @@ public Builder addAllItems(
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1108,7 +1108,7 @@ public Builder clearItems() {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1132,7 +1132,7 @@ public Builder removeItems(int index) {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1149,7 +1149,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder getItemsBuilder(int index)
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1170,7 +1170,7 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1192,7 +1192,7 @@ public com.google.cloud.run.v2.VersionToPathOrBuilder getItemsOrBuilder(int inde
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1210,7 +1210,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder() {
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
@@ -1228,7 +1228,7 @@ public com.google.cloud.run.v2.VersionToPath.Builder addItemsBuilder(int index)
      *
      * 
      * If unspecified, the volume will expose a file whose name is the
-     * secret, relative to VolumeMount.mount_path.
+     * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
      * If specified, the key will be used as the version to fetch from Cloud
      * Secret Manager and the path will be the name of the file exposed in the
      * volume. When items are defined, they must specify a path and a version.
diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java
index 26d6248b6ff1..db6370106c7c 100644
--- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java
+++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SecretVolumeSourceOrBuilder.java
@@ -61,7 +61,7 @@ public interface SecretVolumeSourceOrBuilder
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -76,7 +76,7 @@ public interface SecretVolumeSourceOrBuilder
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -91,7 +91,7 @@ public interface SecretVolumeSourceOrBuilder
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -106,7 +106,7 @@ public interface SecretVolumeSourceOrBuilder
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
@@ -121,7 +121,7 @@ public interface SecretVolumeSourceOrBuilder
    *
    * 
    * If unspecified, the volume will expose a file whose name is the
-   * secret, relative to VolumeMount.mount_path.
+   * secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
    * If specified, the key will be used as the version to fetch from Cloud
    * Secret Manager and the path will be the name of the file exposed in the
    * volume. When items are defined, they must specify a path and a version.
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 888717c9f233..5e61fc380c72 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
@@ -98,6 +98,1003 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
             com.google.cloud.run.v2.Service.class, com.google.cloud.run.v2.Service.Builder.class);
   }
 
+  public interface MultiRegionSettingsOrBuilder
+      extends
+      // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.Service.MultiRegionSettings)
+      com.google.protobuf.MessageOrBuilder {
+
+    /**
+     *
+     *
+     * 
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the regions. + */ + java.util.List getRegionsList(); + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of regions. + */ + int getRegionsCount(); + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The regions at the given index. + */ + java.lang.String getRegions(int index); + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the regions at the given index. + */ + com.google.protobuf.ByteString getRegionsBytes(int index); + + /** + * + * + *
+     * Optional. System-generated unique id for the multi-region Service.
+     * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multiRegionId. + */ + java.lang.String getMultiRegionId(); + + /** + * + * + *
+     * Optional. System-generated unique id for the multi-region Service.
+     * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for multiRegionId. + */ + com.google.protobuf.ByteString getMultiRegionIdBytes(); + } + + /** + * + * + *
+   * Settings for multi-region deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.Service.MultiRegionSettings} + */ + public static final class MultiRegionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Service.MultiRegionSettings) + MultiRegionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiRegionSettings.newBuilder() to construct. + private MultiRegionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiRegionSettings() { + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + multiRegionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiRegionSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_Service_MultiRegionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_Service_MultiRegionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Service.MultiRegionSettings.class, + com.google.cloud.run.v2.Service.MultiRegionSettings.Builder.class); + } + + public static final int REGIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the regions. + */ + public com.google.protobuf.ProtocolStringList getRegionsList() { + return regions_; + } + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of regions. + */ + public int getRegionsCount() { + return regions_.size(); + } + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The regions at the given index. + */ + public java.lang.String getRegions(int index) { + return regions_.get(index); + } + + /** + * + * + *
+     * Required. List of regions to deploy to, including primary region.
+     * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the regions at the given index. + */ + public com.google.protobuf.ByteString getRegionsBytes(int index) { + return regions_.getByteString(index); + } + + public static final int MULTI_REGION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object multiRegionId_ = ""; + + /** + * + * + *
+     * Optional. System-generated unique id for the multi-region Service.
+     * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multiRegionId. + */ + @java.lang.Override + public java.lang.String getMultiRegionId() { + java.lang.Object ref = multiRegionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + multiRegionId_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. System-generated unique id for the multi-region Service.
+     * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for multiRegionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMultiRegionIdBytes() { + java.lang.Object ref = multiRegionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + multiRegionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < regions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, regions_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(multiRegionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, multiRegionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < regions_.size(); i++) { + dataSize += computeStringSizeNoTag(regions_.getRaw(i)); + } + size += dataSize; + size += 1 * getRegionsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(multiRegionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, multiRegionId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.Service.MultiRegionSettings)) { + return super.equals(obj); + } + com.google.cloud.run.v2.Service.MultiRegionSettings other = + (com.google.cloud.run.v2.Service.MultiRegionSettings) obj; + + if (!getRegionsList().equals(other.getRegionsList())) return false; + if (!getMultiRegionId().equals(other.getMultiRegionId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRegionsCount() > 0) { + hash = (37 * hash) + REGIONS_FIELD_NUMBER; + hash = (53 * hash) + getRegionsList().hashCode(); + } + hash = (37 * hash) + MULTI_REGION_ID_FIELD_NUMBER; + hash = (53 * hash) + getMultiRegionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.run.v2.Service.MultiRegionSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Settings for multi-region deployment.
+     * 
+ * + * Protobuf type {@code google.cloud.run.v2.Service.MultiRegionSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Service.MultiRegionSettings) + com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_Service_MultiRegionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_Service_MultiRegionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.Service.MultiRegionSettings.class, + com.google.cloud.run.v2.Service.MultiRegionSettings.Builder.class); + } + + // Construct using com.google.cloud.run.v2.Service.MultiRegionSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + multiRegionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.ServiceProto + .internal_static_google_cloud_run_v2_Service_MultiRegionSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.Service.MultiRegionSettings getDefaultInstanceForType() { + return com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.Service.MultiRegionSettings build() { + com.google.cloud.run.v2.Service.MultiRegionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.Service.MultiRegionSettings buildPartial() { + com.google.cloud.run.v2.Service.MultiRegionSettings result = + new com.google.cloud.run.v2.Service.MultiRegionSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.run.v2.Service.MultiRegionSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + regions_.makeImmutable(); + result.regions_ = regions_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.multiRegionId_ = multiRegionId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.Service.MultiRegionSettings) { + return mergeFrom((com.google.cloud.run.v2.Service.MultiRegionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.Service.MultiRegionSettings other) { + if (other == com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance()) + return this; + if (!other.regions_.isEmpty()) { + if (regions_.isEmpty()) { + regions_ = other.regions_; + bitField0_ |= 0x00000001; + } else { + ensureRegionsIsMutable(); + regions_.addAll(other.regions_); + } + onChanged(); + } + if (!other.getMultiRegionId().isEmpty()) { + multiRegionId_ = other.multiRegionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegionsIsMutable(); + regions_.add(s); + break; + } // case 10 + case 18: + { + multiRegionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList regions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRegionsIsMutable() { + if (!regions_.isModifiable()) { + regions_ = new com.google.protobuf.LazyStringArrayList(regions_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the regions. + */ + public com.google.protobuf.ProtocolStringList getRegionsList() { + regions_.makeImmutable(); + return regions_; + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of regions. + */ + public int getRegionsCount() { + return regions_.size(); + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The regions at the given index. + */ + public java.lang.String getRegions(int index) { + return regions_.get(index); + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the regions at the given index. + */ + public com.google.protobuf.ByteString getRegionsBytes(int index) { + return regions_.getByteString(index); + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The regions to set. + * @return This builder for chaining. + */ + public Builder setRegions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The regions to add. + * @return This builder for chaining. + */ + public Builder addRegions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegionsIsMutable(); + regions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The regions to add. + * @return This builder for chaining. + */ + public Builder addAllRegions(java.lang.Iterable values) { + ensureRegionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, regions_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegions() { + regions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. List of regions to deploy to, including primary region.
+       * 
+ * + * repeated string regions = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the regions to add. + * @return This builder for chaining. + */ + public Builder addRegionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRegionsIsMutable(); + regions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object multiRegionId_ = ""; + + /** + * + * + *
+       * Optional. System-generated unique id for the multi-region Service.
+       * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The multiRegionId. + */ + public java.lang.String getMultiRegionId() { + java.lang.Object ref = multiRegionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + multiRegionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. System-generated unique id for the multi-region Service.
+       * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for multiRegionId. + */ + public com.google.protobuf.ByteString getMultiRegionIdBytes() { + java.lang.Object ref = multiRegionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + multiRegionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. System-generated unique id for the multi-region Service.
+       * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The multiRegionId to set. + * @return This builder for chaining. + */ + public Builder setMultiRegionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + multiRegionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. System-generated unique id for the multi-region Service.
+       * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMultiRegionId() { + multiRegionId_ = getDefaultInstance().getMultiRegionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. System-generated unique id for the multi-region Service.
+       * 
+ * + * string multi_region_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for multiRegionId to set. + * @return This builder for chaining. + */ + public Builder setMultiRegionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + multiRegionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Service.MultiRegionSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Service.MultiRegionSettings) + private static final com.google.cloud.run.v2.Service.MultiRegionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.Service.MultiRegionSettings(); + } + + public static com.google.cloud.run.v2.Service.MultiRegionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiRegionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.Service.MultiRegionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -108,15 +1105,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
-   * The fully qualified name of this Service. In CreateServiceRequest, this
-   * field is ignored, and instead composed from CreateServiceRequest.parent and
-   * CreateServiceRequest.service_id.
+   * Identifier. The fully qualified name of this Service. In
+   * CreateServiceRequest, this field is ignored, and instead composed from
+   * CreateServiceRequest.parent and CreateServiceRequest.service_id.
    *
    * Format:
    * projects/{project}/locations/{location}/services/{service_id}
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -137,15 +1134,15 @@ public java.lang.String getName() { * * *
-   * The fully qualified name of this Service. In CreateServiceRequest, this
-   * field is ignored, and instead composed from CreateServiceRequest.parent and
-   * CreateServiceRequest.service_id.
+   * Identifier. The fully qualified name of this Service. In
+   * CreateServiceRequest, this field is ignored, and instead composed from
+   * CreateServiceRequest.parent and CreateServiceRequest.service_id.
    *
    * Format:
    * projects/{project}/locations/{location}/services/{service_id}
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1403,8 +2400,7 @@ public com.google.cloud.run.v2.ServiceScalingOrBuilder getScalingOrBuilder() { * *
    * Optional. Disables IAM permission check for run.routes.invoke for callers
-   * of this service. This feature is available by invitation only. For more
-   * information, visit
+   * of this service. For more information, visit
    * https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
    * 
* @@ -1504,6 +2500,85 @@ public com.google.protobuf.ByteString getUrlsBytes(int index) { return urls_.getByteString(index); } + public static final int IAP_ENABLED_FIELD_NUMBER = 25; + private boolean iapEnabled_ = false; + + /** + * + * + *
+   * Optional. IAP settings on the Service.
+   * 
+ * + * bool iap_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The iapEnabled. + */ + @java.lang.Override + public boolean getIapEnabled() { + return iapEnabled_; + } + + public static final int MULTI_REGION_SETTINGS_FIELD_NUMBER = 26; + private com.google.cloud.run.v2.Service.MultiRegionSettings multiRegionSettings_; + + /** + * + * + *
+   * Optional. Settings for multi-region deployment.
+   * 
+ * + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiRegionSettings field is set. + */ + @java.lang.Override + public boolean hasMultiRegionSettings() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Settings for multi-region deployment.
+   * 
+ * + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiRegionSettings. + */ + @java.lang.Override + public com.google.cloud.run.v2.Service.MultiRegionSettings getMultiRegionSettings() { + return multiRegionSettings_ == null + ? com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance() + : multiRegionSettings_; + } + + /** + * + * + *
+   * Optional. Settings for multi-region deployment.
+   * 
+ * + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder + getMultiRegionSettingsOrBuilder() { + return multiRegionSettings_ == null + ? com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance() + : multiRegionSettings_; + } + public static final int CUSTOM_AUDIENCES_FIELD_NUMBER = 37; @SuppressWarnings("serial") @@ -1632,7 +2707,7 @@ public long getObservedGeneration() { */ @java.lang.Override public boolean hasTerminalCondition() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -2071,6 +3146,26 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int THREAT_DETECTION_ENABLED_FIELD_NUMBER = 40; + private boolean threatDetectionEnabled_ = false; + + /** + * + * + *
+   * Output only. True if Cloud Run Threat Detection monitoring is enabled for
+   * the parent project of this Service.
+   * 
+ * + * bool threat_detection_enabled = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The threatDetectionEnabled. + */ + @java.lang.Override + public boolean getThreatDetectionEnabled() { + return threatDetectionEnabled_; + } + public static final int BUILD_CONFIG_FIELD_NUMBER = 41; private com.google.cloud.run.v2.BuildConfig buildConfig_; @@ -2089,7 +3184,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasBuildConfig() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -2179,11 +3274,11 @@ public boolean getReconciling() { * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -2204,11 +3299,11 @@ public java.lang.String getEtag() { * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -2307,10 +3402,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < urls_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, urls_.getRaw(i)); } + if (iapEnabled_ != false) { + output.writeBool(25, iapEnabled_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(26, getMultiRegionSettings()); + } if (observedGeneration_ != 0L) { output.writeInt64(30, observedGeneration_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(31, getTerminalCondition()); } for (int i = 0; i < conditions_.size(); i++) { @@ -2334,7 +3435,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzs_ != false) { output.writeBool(38, satisfiesPzs_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (threatDetectionEnabled_ != false) { + output.writeBool(40, threatDetectionEnabled_); + } + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(41, getBuildConfig()); } if (reconciling_ != false) { @@ -2442,10 +3546,17 @@ public int getSerializedSize() { size += dataSize; size += 2 * getUrlsList().size(); } + if (iapEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, iapEnabled_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(26, getMultiRegionSettings()); + } if (observedGeneration_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(30, observedGeneration_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getTerminalCondition()); } for (int i = 0; i < conditions_.size(); i++) { @@ -2474,7 +3585,10 @@ public int getSerializedSize() { if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, satisfiesPzs_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (threatDetectionEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(40, threatDetectionEnabled_); + } + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(41, getBuildConfig()); } if (reconciling_ != false) { @@ -2542,6 +3656,11 @@ public boolean equals(final java.lang.Object obj) { if (getInvokerIamDisabled() != other.getInvokerIamDisabled()) return false; if (getDefaultUriDisabled() != other.getDefaultUriDisabled()) return false; if (!getUrlsList().equals(other.getUrlsList())) return false; + if (getIapEnabled() != other.getIapEnabled()) return false; + if (hasMultiRegionSettings() != other.hasMultiRegionSettings()) return false; + if (hasMultiRegionSettings()) { + if (!getMultiRegionSettings().equals(other.getMultiRegionSettings())) return false; + } if (!getCustomAudiencesList().equals(other.getCustomAudiencesList())) return false; if (getObservedGeneration() != other.getObservedGeneration()) return false; if (hasTerminalCondition() != other.hasTerminalCondition()) return false; @@ -2554,6 +3673,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTrafficStatusesList().equals(other.getTrafficStatusesList())) return false; if (!getUri().equals(other.getUri())) return false; if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getThreatDetectionEnabled() != other.getThreatDetectionEnabled()) return false; if (hasBuildConfig() != other.hasBuildConfig()) return false; if (hasBuildConfig()) { if (!getBuildConfig().equals(other.getBuildConfig())) return false; @@ -2639,6 +3759,12 @@ public int hashCode() { hash = (37 * hash) + URLS_FIELD_NUMBER; hash = (53 * hash) + getUrlsList().hashCode(); } + hash = (37 * hash) + IAP_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIapEnabled()); + if (hasMultiRegionSettings()) { + hash = (37 * hash) + MULTI_REGION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getMultiRegionSettings().hashCode(); + } if (getCustomAudiencesCount() > 0) { hash = (37 * hash) + CUSTOM_AUDIENCES_FIELD_NUMBER; hash = (53 * hash) + getCustomAudiencesList().hashCode(); @@ -2665,6 +3791,8 @@ public int hashCode() { hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + THREAT_DETECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThreatDetectionEnabled()); if (hasBuildConfig()) { hash = (37 * hash) + BUILD_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getBuildConfig().hashCode(); @@ -2850,6 +3978,7 @@ private void maybeForceBuilderInitialization() { getTemplateFieldBuilder(); getTrafficFieldBuilder(); getScalingFieldBuilder(); + getMultiRegionSettingsFieldBuilder(); getTerminalConditionFieldBuilder(); getConditionsFieldBuilder(); getTrafficStatusesFieldBuilder(); @@ -2919,6 +4048,12 @@ public Builder clear() { invokerIamDisabled_ = false; defaultUriDisabled_ = false; urls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + iapEnabled_ = false; + multiRegionSettings_ = null; + if (multiRegionSettingsBuilder_ != null) { + multiRegionSettingsBuilder_.dispose(); + multiRegionSettingsBuilder_ = null; + } customAudiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); observedGeneration_ = 0L; terminalCondition_ = null; @@ -2932,7 +4067,7 @@ public Builder clear() { conditions_ = null; conditionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); latestReadyRevision_ = ""; latestCreatedRevision_ = ""; if (trafficStatusesBuilder_ == null) { @@ -2941,9 +4076,10 @@ public Builder clear() { trafficStatuses_ = null; trafficStatusesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); uri_ = ""; satisfiesPzs_ = false; + threatDetectionEnabled_ = false; buildConfig_ = null; if (buildConfigBuilder_ != null) { buildConfigBuilder_.dispose(); @@ -2999,18 +4135,18 @@ private void buildPartialRepeatedFields(com.google.cloud.run.v2.Service result) result.traffic_ = trafficBuilder_.build(); } if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0)) { + if (((bitField0_ & 0x10000000) != 0)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } if (trafficStatusesBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0)) { + if (((bitField0_ & 0x80000000) != 0)) { trafficStatuses_ = java.util.Collections.unmodifiableList(trafficStatuses_); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); } result.trafficStatuses_ = trafficStatuses_; } else { @@ -3101,46 +4237,59 @@ private void buildPartial0(com.google.cloud.run.v2.Service result) { result.urls_ = urls_; } if (((from_bitField0_ & 0x00800000) != 0)) { + result.iapEnabled_ = iapEnabled_; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.multiRegionSettings_ = + multiRegionSettingsBuilder_ == null + ? multiRegionSettings_ + : multiRegionSettingsBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x02000000) != 0)) { customAudiences_.makeImmutable(); result.customAudiences_ = customAudiences_; } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x04000000) != 0)) { result.observedGeneration_ = observedGeneration_; } - if (((from_bitField0_ & 0x02000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.terminalCondition_ = terminalConditionBuilder_ == null ? terminalCondition_ : terminalConditionBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.latestReadyRevision_ = latestReadyRevision_; } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.latestCreatedRevision_ = latestCreatedRevision_; - } if (((from_bitField0_ & 0x40000000) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.satisfiesPzs_ = satisfiesPzs_; + result.latestCreatedRevision_ = latestCreatedRevision_; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.google.cloud.run.v2.Service result) { int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField1_ & 0x00000004) != 0)) { + result.threatDetectionEnabled_ = threatDetectionEnabled_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000008) != 0)) { result.buildConfig_ = buildConfigBuilder_ == null ? buildConfig_ : buildConfigBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; } - if (((from_bitField1_ & 0x00000002) != 0)) { + if (((from_bitField1_ & 0x00000010) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField1_ & 0x00000004) != 0)) { + if (((from_bitField1_ & 0x00000020) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -3303,10 +4452,16 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { } onChanged(); } + if (other.getIapEnabled() != false) { + setIapEnabled(other.getIapEnabled()); + } + if (other.hasMultiRegionSettings()) { + mergeMultiRegionSettings(other.getMultiRegionSettings()); + } if (!other.customAudiences_.isEmpty()) { if (customAudiences_.isEmpty()) { customAudiences_ = other.customAudiences_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; } else { ensureCustomAudiencesIsMutable(); customAudiences_.addAll(other.customAudiences_); @@ -3323,7 +4478,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); @@ -3336,7 +4491,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() @@ -3348,19 +4503,19 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { } if (!other.getLatestReadyRevision().isEmpty()) { latestReadyRevision_ = other.latestReadyRevision_; - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); } if (!other.getLatestCreatedRevision().isEmpty()) { latestCreatedRevision_ = other.latestCreatedRevision_; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); } if (trafficStatusesBuilder_ == null) { if (!other.trafficStatuses_.isEmpty()) { if (trafficStatuses_.isEmpty()) { trafficStatuses_ = other.trafficStatuses_; - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); } else { ensureTrafficStatusesIsMutable(); trafficStatuses_.addAll(other.trafficStatuses_); @@ -3373,7 +4528,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { trafficStatusesBuilder_.dispose(); trafficStatusesBuilder_ = null; trafficStatuses_ = other.trafficStatuses_; - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); trafficStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTrafficStatusesFieldBuilder() @@ -3385,12 +4540,15 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { } if (!other.getUri().isEmpty()) { uri_ = other.uri_; - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); } if (other.getSatisfiesPzs() != false) { setSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.getThreatDetectionEnabled() != false) { + setThreatDetectionEnabled(other.getThreatDetectionEnabled()); + } if (other.hasBuildConfig()) { mergeBuildConfig(other.getBuildConfig()); } @@ -3399,7 +4557,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.Service other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3587,17 +4745,30 @@ public Builder mergeFrom( urls_.add(s); break; } // case 194 + case 200: + { + iapEnabled_ = input.readBool(); + bitField0_ |= 0x00800000; + break; + } // case 200 + case 210: + { + input.readMessage( + getMultiRegionSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 210 case 240: { observedGeneration_ = input.readInt64(); - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; break; } // case 240 case 250: { input.readMessage( getTerminalConditionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; break; } // case 250 case 258: @@ -3616,13 +4787,13 @@ public Builder mergeFrom( case 266: { latestReadyRevision_ = input.readStringRequireUtf8(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; break; } // case 266 case 274: { latestCreatedRevision_ = input.readStringRequireUtf8(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; break; } // case 274 case 282: @@ -3641,7 +4812,7 @@ public Builder mergeFrom( case 290: { uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; break; } // case 290 case 298: @@ -3654,25 +4825,31 @@ public Builder mergeFrom( case 304: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; break; } // case 304 + case 320: + { + threatDetectionEnabled_ = input.readBool(); + bitField1_ |= 0x00000004; + break; + } // case 320 case 330: { input.readMessage(getBuildConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; break; } // case 330 case 784: { reconciling_ = input.readBool(); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; break; } // case 784 case 794: { etag_ = input.readStringRequireUtf8(); - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; break; } // case 794 default: @@ -3701,15 +4878,15 @@ public Builder mergeFrom( * * *
-     * The fully qualified name of this Service. In CreateServiceRequest, this
-     * field is ignored, and instead composed from CreateServiceRequest.parent and
-     * CreateServiceRequest.service_id.
+     * Identifier. The fully qualified name of this Service. In
+     * CreateServiceRequest, this field is ignored, and instead composed from
+     * CreateServiceRequest.parent and CreateServiceRequest.service_id.
      *
      * Format:
      * projects/{project}/locations/{location}/services/{service_id}
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3729,15 +4906,15 @@ public java.lang.String getName() { * * *
-     * The fully qualified name of this Service. In CreateServiceRequest, this
-     * field is ignored, and instead composed from CreateServiceRequest.parent and
-     * CreateServiceRequest.service_id.
+     * Identifier. The fully qualified name of this Service. In
+     * CreateServiceRequest, this field is ignored, and instead composed from
+     * CreateServiceRequest.parent and CreateServiceRequest.service_id.
      *
      * Format:
      * projects/{project}/locations/{location}/services/{service_id}
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -3757,15 +4934,15 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The fully qualified name of this Service. In CreateServiceRequest, this
-     * field is ignored, and instead composed from CreateServiceRequest.parent and
-     * CreateServiceRequest.service_id.
+     * Identifier. The fully qualified name of this Service. In
+     * CreateServiceRequest, this field is ignored, and instead composed from
+     * CreateServiceRequest.parent and CreateServiceRequest.service_id.
      *
      * Format:
      * projects/{project}/locations/{location}/services/{service_id}
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -3784,15 +4961,15 @@ public Builder setName(java.lang.String value) { * * *
-     * The fully qualified name of this Service. In CreateServiceRequest, this
-     * field is ignored, and instead composed from CreateServiceRequest.parent and
-     * CreateServiceRequest.service_id.
+     * Identifier. The fully qualified name of this Service. In
+     * CreateServiceRequest, this field is ignored, and instead composed from
+     * CreateServiceRequest.parent and CreateServiceRequest.service_id.
      *
      * Format:
      * projects/{project}/locations/{location}/services/{service_id}
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -3807,15 +4984,15 @@ public Builder clearName() { * * *
-     * The fully qualified name of this Service. In CreateServiceRequest, this
-     * field is ignored, and instead composed from CreateServiceRequest.parent and
-     * CreateServiceRequest.service_id.
+     * Identifier. The fully qualified name of this Service. In
+     * CreateServiceRequest, this field is ignored, and instead composed from
+     * CreateServiceRequest.parent and CreateServiceRequest.service_id.
      *
      * Format:
      * projects/{project}/locations/{location}/services/{service_id}
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -7278,8 +8455,7 @@ public com.google.cloud.run.v2.ServiceScalingOrBuilder getScalingOrBuilder() { * *
      * Optional. Disables IAM permission check for run.routes.invoke for callers
-     * of this service. This feature is available by invitation only. For more
-     * information, visit
+     * of this service. For more information, visit
      * https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
      * 
* @@ -7297,8 +8473,7 @@ public boolean getInvokerIamDisabled() { * *
      * Optional. Disables IAM permission check for run.routes.invoke for callers
-     * of this service. This feature is available by invitation only. For more
-     * information, visit
+     * of this service. For more information, visit
      * https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
      * 
* @@ -7320,8 +8495,7 @@ public Builder setInvokerIamDisabled(boolean value) { * *
      * Optional. Disables IAM permission check for run.routes.invoke for callers
-     * of this service. This feature is available by invitation only. For more
-     * information, visit
+     * of this service. For more information, visit
      * https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
      * 
* @@ -7336,40 +8510,279 @@ public Builder clearInvokerIamDisabled() { return this; } - private boolean defaultUriDisabled_; + private boolean defaultUriDisabled_; + + /** + * + * + *
+     * Optional. Disables public resolution of the default URI of this service.
+     * 
+ * + * bool default_uri_disabled = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultUriDisabled. + */ + @java.lang.Override + public boolean getDefaultUriDisabled() { + return defaultUriDisabled_; + } + + /** + * + * + *
+     * Optional. Disables public resolution of the default URI of this service.
+     * 
+ * + * bool default_uri_disabled = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultUriDisabled to set. + * @return This builder for chaining. + */ + public Builder setDefaultUriDisabled(boolean value) { + + defaultUriDisabled_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Disables public resolution of the default URI of this service.
+     * 
+ * + * bool default_uri_disabled = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultUriDisabled() { + bitField0_ = (bitField0_ & ~0x00200000); + defaultUriDisabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList urls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUrlsIsMutable() { + if (!urls_.isModifiable()) { + urls_ = new com.google.protobuf.LazyStringArrayList(urls_); + } + bitField0_ |= 0x00400000; + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the urls. + */ + public com.google.protobuf.ProtocolStringList getUrlsList() { + urls_.makeImmutable(); + return urls_; + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of urls. + */ + public int getUrlsCount() { + return urls_.size(); + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The urls at the given index. + */ + public java.lang.String getUrls(int index) { + return urls_.get(index); + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the urls at the given index. + */ + public com.google.protobuf.ByteString getUrlsBytes(int index) { + return urls_.getByteString(index); + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The urls to set. + * @return This builder for chaining. + */ + public Builder setUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlsIsMutable(); + urls_.set(index, value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The urls to add. + * @return This builder for chaining. + */ + public Builder addUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUrlsIsMutable(); + urls_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The urls to add. + * @return This builder for chaining. + */ + public Builder addAllUrls(java.lang.Iterable values) { + ensureUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urls_); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUrls() { + urls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All URLs serving traffic for this Service.
+     * 
+ * + * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the urls to add. + * @return This builder for chaining. + */ + public Builder addUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUrlsIsMutable(); + urls_.add(value); + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private boolean iapEnabled_; /** * * *
-     * Optional. Disables public resolution of the default URI of this service.
+     * Optional. IAP settings on the Service.
      * 
* - * bool default_uri_disabled = 22 [(.google.api.field_behavior) = OPTIONAL]; + * bool iap_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The defaultUriDisabled. + * @return The iapEnabled. */ @java.lang.Override - public boolean getDefaultUriDisabled() { - return defaultUriDisabled_; + public boolean getIapEnabled() { + return iapEnabled_; } /** * * *
-     * Optional. Disables public resolution of the default URI of this service.
+     * Optional. IAP settings on the Service.
      * 
* - * bool default_uri_disabled = 22 [(.google.api.field_behavior) = OPTIONAL]; + * bool iap_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The defaultUriDisabled to set. + * @param value The iapEnabled to set. * @return This builder for chaining. */ - public Builder setDefaultUriDisabled(boolean value) { + public Builder setIapEnabled(boolean value) { - defaultUriDisabled_ = value; - bitField0_ |= 0x00200000; + iapEnabled_ = value; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7378,114 +8791,145 @@ public Builder setDefaultUriDisabled(boolean value) { * * *
-     * Optional. Disables public resolution of the default URI of this service.
+     * Optional. IAP settings on the Service.
      * 
* - * bool default_uri_disabled = 22 [(.google.api.field_behavior) = OPTIONAL]; + * bool iap_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearDefaultUriDisabled() { - bitField0_ = (bitField0_ & ~0x00200000); - defaultUriDisabled_ = false; + public Builder clearIapEnabled() { + bitField0_ = (bitField0_ & ~0x00800000); + iapEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList urls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureUrlsIsMutable() { - if (!urls_.isModifiable()) { - urls_ = new com.google.protobuf.LazyStringArrayList(urls_); - } - bitField0_ |= 0x00400000; - } + private com.google.cloud.run.v2.Service.MultiRegionSettings multiRegionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service.MultiRegionSettings, + com.google.cloud.run.v2.Service.MultiRegionSettings.Builder, + com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder> + multiRegionSettingsBuilder_; /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return A list containing the urls. + * @return Whether the multiRegionSettings field is set. */ - public com.google.protobuf.ProtocolStringList getUrlsList() { - urls_.makeImmutable(); - return urls_; + public boolean hasMultiRegionSettings() { + return ((bitField0_ & 0x01000000) != 0); } /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The count of urls. + * @return The multiRegionSettings. */ - public int getUrlsCount() { - return urls_.size(); + public com.google.cloud.run.v2.Service.MultiRegionSettings getMultiRegionSettings() { + if (multiRegionSettingsBuilder_ == null) { + return multiRegionSettings_ == null + ? com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance() + : multiRegionSettings_; + } else { + return multiRegionSettingsBuilder_.getMessage(); + } } /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the element to return. - * @return The urls at the given index. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getUrls(int index) { - return urls_.get(index); + public Builder setMultiRegionSettings( + com.google.cloud.run.v2.Service.MultiRegionSettings value) { + if (multiRegionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiRegionSettings_ = value; + } else { + multiRegionSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; } /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index of the value to return. - * @return The bytes of the urls at the given index. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getUrlsBytes(int index) { - return urls_.getByteString(index); + public Builder setMultiRegionSettings( + com.google.cloud.run.v2.Service.MultiRegionSettings.Builder builderForValue) { + if (multiRegionSettingsBuilder_ == null) { + multiRegionSettings_ = builderForValue.build(); + } else { + multiRegionSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; } /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param index The index to set the value at. - * @param value The urls to set. - * @return This builder for chaining. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUrls(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeMultiRegionSettings( + com.google.cloud.run.v2.Service.MultiRegionSettings value) { + if (multiRegionSettingsBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && multiRegionSettings_ != null + && multiRegionSettings_ + != com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance()) { + getMultiRegionSettingsBuilder().mergeFrom(value); + } else { + multiRegionSettings_ = value; + } + } else { + multiRegionSettingsBuilder_.mergeFrom(value); + } + if (multiRegionSettings_ != null) { + bitField0_ |= 0x01000000; + onChanged(); } - ensureUrlsIsMutable(); - urls_.set(index, value); - bitField0_ |= 0x00400000; - onChanged(); return this; } @@ -7493,21 +8937,20 @@ public Builder setUrls(int index, java.lang.String value) { * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The urls to add. - * @return This builder for chaining. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearMultiRegionSettings() { + bitField0_ = (bitField0_ & ~0x01000000); + multiRegionSettings_ = null; + if (multiRegionSettingsBuilder_ != null) { + multiRegionSettingsBuilder_.dispose(); + multiRegionSettingsBuilder_ = null; } - ensureUrlsIsMutable(); - urls_.add(value); - bitField0_ |= 0x00400000; onChanged(); return this; } @@ -7516,63 +8959,68 @@ public Builder addUrls(java.lang.String value) { * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param values The urls to add. - * @return This builder for chaining. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAllUrls(java.lang.Iterable values) { - ensureUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urls_); - bitField0_ |= 0x00400000; + public com.google.cloud.run.v2.Service.MultiRegionSettings.Builder + getMultiRegionSettingsBuilder() { + bitField0_ |= 0x01000000; onChanged(); - return this; + return getMultiRegionSettingsFieldBuilder().getBuilder(); } /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearUrls() { - urls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); - ; - onChanged(); - return this; + public com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder + getMultiRegionSettingsOrBuilder() { + if (multiRegionSettingsBuilder_ != null) { + return multiRegionSettingsBuilder_.getMessageOrBuilder(); + } else { + return multiRegionSettings_ == null + ? com.google.cloud.run.v2.Service.MultiRegionSettings.getDefaultInstance() + : multiRegionSettings_; + } } /** * * *
-     * Output only. All URLs serving traffic for this Service.
+     * Optional. Settings for multi-region deployment.
      * 
* - * repeated string urls = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes of the urls to add. - * @return This builder for chaining. + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service.MultiRegionSettings, + com.google.cloud.run.v2.Service.MultiRegionSettings.Builder, + com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder> + getMultiRegionSettingsFieldBuilder() { + if (multiRegionSettingsBuilder_ == null) { + multiRegionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.Service.MultiRegionSettings, + com.google.cloud.run.v2.Service.MultiRegionSettings.Builder, + com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder>( + getMultiRegionSettings(), getParentForChildren(), isClean()); + multiRegionSettings_ = null; } - checkByteStringIsUtf8(value); - ensureUrlsIsMutable(); - urls_.add(value); - bitField0_ |= 0x00400000; - onChanged(); - return this; + return multiRegionSettingsBuilder_; } private com.google.protobuf.LazyStringArrayList customAudiences_ = @@ -7582,7 +9030,7 @@ private void ensureCustomAudiencesIsMutable() { if (!customAudiences_.isModifiable()) { customAudiences_ = new com.google.protobuf.LazyStringArrayList(customAudiences_); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; } /** @@ -7687,7 +9135,7 @@ public Builder setCustomAudiences(int index, java.lang.String value) { } ensureCustomAudiencesIsMutable(); customAudiences_.set(index, value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7714,7 +9162,7 @@ public Builder addCustomAudiences(java.lang.String value) { } ensureCustomAudiencesIsMutable(); customAudiences_.add(value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7738,7 +9186,7 @@ public Builder addCustomAudiences(java.lang.String value) { public Builder addAllCustomAudiences(java.lang.Iterable values) { ensureCustomAudiencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customAudiences_); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7760,7 +9208,7 @@ public Builder addAllCustomAudiences(java.lang.Iterable values */ public Builder clearCustomAudiences() { customAudiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x02000000); ; onChanged(); return this; @@ -7789,7 +9237,7 @@ public Builder addCustomAudiencesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCustomAudiencesIsMutable(); customAudiences_.add(value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x02000000; onChanged(); return this; } @@ -7835,7 +9283,7 @@ public long getObservedGeneration() { public Builder setObservedGeneration(long value) { observedGeneration_ = value; - bitField0_ |= 0x01000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -7856,7 +9304,7 @@ public Builder setObservedGeneration(long value) { * @return This builder for chaining. */ public Builder clearObservedGeneration() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x04000000); observedGeneration_ = 0L; onChanged(); return this; @@ -7886,7 +9334,7 @@ public Builder clearObservedGeneration() { * @return Whether the terminalCondition field is set. */ public boolean hasTerminalCondition() { - return ((bitField0_ & 0x02000000) != 0); + return ((bitField0_ & 0x08000000) != 0); } /** @@ -7938,7 +9386,7 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition value) { } else { terminalConditionBuilder_.setMessage(value); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -7963,7 +9411,7 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition.Builder bu } else { terminalConditionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -7984,7 +9432,7 @@ public Builder setTerminalCondition(com.google.cloud.run.v2.Condition.Builder bu */ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { if (terminalConditionBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) + if (((bitField0_ & 0x08000000) != 0) && terminalCondition_ != null && terminalCondition_ != com.google.cloud.run.v2.Condition.getDefaultInstance()) { getTerminalConditionBuilder().mergeFrom(value); @@ -7995,7 +9443,7 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { terminalConditionBuilder_.mergeFrom(value); } if (terminalCondition_ != null) { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); } return this; @@ -8016,7 +9464,7 @@ public Builder mergeTerminalCondition(com.google.cloud.run.v2.Condition value) { * */ public Builder clearTerminalCondition() { - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x08000000); terminalCondition_ = null; if (terminalConditionBuilder_ != null) { terminalConditionBuilder_.dispose(); @@ -8041,7 +9489,7 @@ public Builder clearTerminalCondition() { * */ public com.google.cloud.run.v2.Condition.Builder getTerminalConditionBuilder() { - bitField0_ |= 0x02000000; + bitField0_ |= 0x08000000; onChanged(); return getTerminalConditionFieldBuilder().getBuilder(); } @@ -8105,9 +9553,9 @@ public com.google.cloud.run.v2.ConditionOrBuilder getTerminalConditionOrBuilder( java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x04000000) != 0)) { + if (!((bitField0_ & 0x10000000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x04000000; + bitField0_ |= 0x10000000; } } @@ -8387,7 +9835,7 @@ public Builder addAllConditions( public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x10000000); onChanged(); } else { conditionsBuilder_.clear(); @@ -8550,7 +9998,7 @@ public java.util.List getConditionsBu com.google.cloud.run.v2.Condition, com.google.cloud.run.v2.Condition.Builder, com.google.cloud.run.v2.ConditionOrBuilder>( - conditions_, ((bitField0_ & 0x04000000) != 0), getParentForChildren(), isClean()); + conditions_, ((bitField0_ & 0x10000000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; @@ -8633,7 +10081,7 @@ public Builder setLatestReadyRevision(java.lang.String value) { throw new NullPointerException(); } latestReadyRevision_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8655,7 +10103,7 @@ public Builder setLatestReadyRevision(java.lang.String value) { */ public Builder clearLatestReadyRevision() { latestReadyRevision_ = getDefaultInstance().getLatestReadyRevision(); - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } @@ -8682,7 +10130,7 @@ public Builder setLatestReadyRevisionBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); latestReadyRevision_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8764,7 +10212,7 @@ public Builder setLatestCreatedRevision(java.lang.String value) { throw new NullPointerException(); } latestCreatedRevision_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -8786,7 +10234,7 @@ public Builder setLatestCreatedRevision(java.lang.String value) { */ public Builder clearLatestCreatedRevision() { latestCreatedRevision_ = getDefaultInstance().getLatestCreatedRevision(); - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } @@ -8813,7 +10261,7 @@ public Builder setLatestCreatedRevisionBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); latestCreatedRevision_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -8822,10 +10270,10 @@ public Builder setLatestCreatedRevisionBytes(com.google.protobuf.ByteString valu java.util.Collections.emptyList(); private void ensureTrafficStatusesIsMutable() { - if (!((bitField0_ & 0x20000000) != 0)) { + if (!((bitField0_ & 0x80000000) != 0)) { trafficStatuses_ = new java.util.ArrayList(trafficStatuses_); - bitField0_ |= 0x20000000; + bitField0_ |= 0x80000000; } } @@ -9097,7 +10545,7 @@ public Builder addAllTrafficStatuses( public Builder clearTrafficStatuses() { if (trafficStatusesBuilder_ == null) { trafficStatuses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x20000000); + bitField0_ = (bitField0_ & ~0x80000000); onChanged(); } else { trafficStatusesBuilder_.clear(); @@ -9258,7 +10706,7 @@ public com.google.cloud.run.v2.TrafficTargetStatus.Builder addTrafficStatusesBui com.google.cloud.run.v2.TrafficTargetStatus.Builder, com.google.cloud.run.v2.TrafficTargetStatusOrBuilder>( trafficStatuses_, - ((bitField0_ & 0x20000000) != 0), + ((bitField0_ & 0x80000000) != 0), getParentForChildren(), isClean()); trafficStatuses_ = null; @@ -9331,7 +10779,7 @@ public Builder setUri(java.lang.String value) { throw new NullPointerException(); } uri_ = value; - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -9349,7 +10797,7 @@ public Builder setUri(java.lang.String value) { */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x40000000); + bitField1_ = (bitField1_ & ~0x00000001); onChanged(); return this; } @@ -9372,7 +10820,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uri_ = value; - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000001; onChanged(); return this; } @@ -9410,7 +10858,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x80000000; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -9427,12 +10875,71 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x80000000); + bitField1_ = (bitField1_ & ~0x00000002); satisfiesPzs_ = false; onChanged(); return this; } + private boolean threatDetectionEnabled_; + + /** + * + * + *
+     * Output only. True if Cloud Run Threat Detection monitoring is enabled for
+     * the parent project of this Service.
+     * 
+ * + * bool threat_detection_enabled = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The threatDetectionEnabled. + */ + @java.lang.Override + public boolean getThreatDetectionEnabled() { + return threatDetectionEnabled_; + } + + /** + * + * + *
+     * Output only. True if Cloud Run Threat Detection monitoring is enabled for
+     * the parent project of this Service.
+     * 
+ * + * bool threat_detection_enabled = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The threatDetectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setThreatDetectionEnabled(boolean value) { + + threatDetectionEnabled_ = value; + bitField1_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. True if Cloud Run Threat Detection monitoring is enabled for
+     * the parent project of this Service.
+     * 
+ * + * bool threat_detection_enabled = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearThreatDetectionEnabled() { + bitField1_ = (bitField1_ & ~0x00000004); + threatDetectionEnabled_ = false; + onChanged(); + return this; + } + private com.google.cloud.run.v2.BuildConfig buildConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.run.v2.BuildConfig, @@ -9454,7 +10961,7 @@ public Builder clearSatisfiesPzs() { * @return Whether the buildConfig field is set. */ public boolean hasBuildConfig() { - return ((bitField1_ & 0x00000001) != 0); + return ((bitField1_ & 0x00000008) != 0); } /** @@ -9500,7 +11007,7 @@ public Builder setBuildConfig(com.google.cloud.run.v2.BuildConfig value) { } else { buildConfigBuilder_.setMessage(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -9522,7 +11029,7 @@ public Builder setBuildConfig(com.google.cloud.run.v2.BuildConfig.Builder builde } else { buildConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -9540,7 +11047,7 @@ public Builder setBuildConfig(com.google.cloud.run.v2.BuildConfig.Builder builde */ public Builder mergeBuildConfig(com.google.cloud.run.v2.BuildConfig value) { if (buildConfigBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) + if (((bitField1_ & 0x00000008) != 0) && buildConfig_ != null && buildConfig_ != com.google.cloud.run.v2.BuildConfig.getDefaultInstance()) { getBuildConfigBuilder().mergeFrom(value); @@ -9551,7 +11058,7 @@ public Builder mergeBuildConfig(com.google.cloud.run.v2.BuildConfig value) { buildConfigBuilder_.mergeFrom(value); } if (buildConfig_ != null) { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); } return this; @@ -9569,7 +11076,7 @@ public Builder mergeBuildConfig(com.google.cloud.run.v2.BuildConfig value) { * */ public Builder clearBuildConfig() { - bitField1_ = (bitField1_ & ~0x00000001); + bitField1_ = (bitField1_ & ~0x00000008); buildConfig_ = null; if (buildConfigBuilder_ != null) { buildConfigBuilder_.dispose(); @@ -9591,7 +11098,7 @@ public Builder clearBuildConfig() { * */ public com.google.cloud.run.v2.BuildConfig.Builder getBuildConfigBuilder() { - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000008; onChanged(); return getBuildConfigFieldBuilder().getBuilder(); } @@ -9720,7 +11227,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -9758,7 +11265,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000010); reconciling_ = false; onChanged(); return this; @@ -9770,11 +11277,11 @@ public Builder clearReconciling() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -9794,11 +11301,11 @@ public java.lang.String getEtag() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -9818,11 +11325,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The etag to set. * @return This builder for chaining. @@ -9832,7 +11339,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; onChanged(); return this; } @@ -9841,17 +11348,17 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField1_ = (bitField1_ & ~0x00000004); + bitField1_ = (bitField1_ & ~0x00000020); onChanged(); return this; } @@ -9860,11 +11367,11 @@ public Builder clearEtag() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for etag to set. * @return This builder for chaining. @@ -9875,7 +11382,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField1_ |= 0x00000004; + bitField1_ |= 0x00000020; 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 da827f6d4dcb..ec64dc457250 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 @@ -28,15 +28,15 @@ public interface ServiceOrBuilder * * *
-   * The fully qualified name of this Service. In CreateServiceRequest, this
-   * field is ignored, and instead composed from CreateServiceRequest.parent and
-   * CreateServiceRequest.service_id.
+   * Identifier. The fully qualified name of this Service. In
+   * CreateServiceRequest, this field is ignored, and instead composed from
+   * CreateServiceRequest.parent and CreateServiceRequest.service_id.
    *
    * Format:
    * projects/{project}/locations/{location}/services/{service_id}
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,15 +46,15 @@ public interface ServiceOrBuilder * * *
-   * The fully qualified name of this Service. In CreateServiceRequest, this
-   * field is ignored, and instead composed from CreateServiceRequest.parent and
-   * CreateServiceRequest.service_id.
+   * Identifier. The fully qualified name of this Service. In
+   * CreateServiceRequest, this field is ignored, and instead composed from
+   * CreateServiceRequest.parent and CreateServiceRequest.service_id.
    *
    * Format:
    * projects/{project}/locations/{location}/services/{service_id}
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -925,8 +925,7 @@ java.lang.String getAnnotationsOrDefault( * *
    * Optional. Disables IAM permission check for run.routes.invoke for callers
-   * of this service. This feature is available by invitation only. For more
-   * information, visit
+   * of this service. For more information, visit
    * https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
    * 
* @@ -1003,6 +1002,62 @@ java.lang.String getAnnotationsOrDefault( */ com.google.protobuf.ByteString getUrlsBytes(int index); + /** + * + * + *
+   * Optional. IAP settings on the Service.
+   * 
+ * + * bool iap_enabled = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The iapEnabled. + */ + boolean getIapEnabled(); + + /** + * + * + *
+   * Optional. Settings for multi-region deployment.
+   * 
+ * + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multiRegionSettings field is set. + */ + boolean hasMultiRegionSettings(); + + /** + * + * + *
+   * Optional. Settings for multi-region deployment.
+   * 
+ * + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multiRegionSettings. + */ + com.google.cloud.run.v2.Service.MultiRegionSettings getMultiRegionSettings(); + + /** + * + * + *
+   * Optional. Settings for multi-region deployment.
+   * 
+ * + * + * .google.cloud.run.v2.Service.MultiRegionSettings multi_region_settings = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.run.v2.Service.MultiRegionSettingsOrBuilder getMultiRegionSettingsOrBuilder(); + /** * * @@ -1405,6 +1460,20 @@ java.lang.String getAnnotationsOrDefault( */ boolean getSatisfiesPzs(); + /** + * + * + *
+   * Output only. True if Cloud Run Threat Detection monitoring is enabled for
+   * the parent project of this Service.
+   * 
+ * + * bool threat_detection_enabled = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The threatDetectionEnabled. + */ + boolean getThreatDetectionEnabled(); + /** * * @@ -1486,11 +1555,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -1500,11 +1569,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ 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 b59b0c9503b9..f7a4e5624ca8 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 @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_run_v2_Service_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_run_v2_Service_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_run_v2_Service_MultiRegionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_run_v2_Service_MultiRegionSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,10 +108,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB\"\340A\002\372A\034\022\032run.googleapis.com/Service\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\024\n" - + "\014show_deleted\030\004 \001(\010\"_\n" + + "\014show_deleted\030\004 \001(\010\"y\n" + "\024ListServicesResponse\022.\n" + "\010services\030\001 \003(\0132\034.google.cloud.run.v2.Service\022\027\n" - + "\017next_page_token\030\002 \001(\t\"E\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\003\"E\n" + "\021GetServiceRequest\0220\n" + "\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032run.googleapis.com/Service\"m\n" @@ -115,16 +120,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032run.googleapis.com/Service\022\025\n\r" + "validate_only\030\002 \001(\010\022\014\n" - + "\004etag\030\003 \001(\t\"\275\r\n" - + "\007Service\022\014\n" - + "\004name\030\001 \001(\t\022\023\n" + + "\004etag\030\003 \001(\t\"\244\017\n" + + "\007Service\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\023\n" + "\013description\030\002 \001(\t\022\020\n" + "\003uid\030\003 \001(\tB\003\340A\003\022\027\n\n" + "generation\030\004 \001(\003B\003\340A\003\022=\n" - + "\006labels\030\005 \003(\013" - + "2(.google.cloud.run.v2.Service.LabelsEntryB\003\340A\001\022G\n" - + "\013annotations\030\006 \003(\0132-.google.cl" - + "oud.run.v2.Service.AnnotationsEntryB\003\340A\001\0224\n" + + "\006labels\030\005 \003(\0132(.google" + + ".cloud.run.v2.Service.LabelsEntryB\003\340A\001\022G\n" + + "\013annotations\030\006" + + " \003(\0132-.google.cloud.run.v2.Service.AnnotationsEntryB\003\340A\001\0224\n" + "\013create_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.TimestampB\003\340A\003\0224\n" @@ -135,11 +140,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006client\030\r" + " \001(\t\022\026\n" + "\016client_version\030\016 \001(\t\0229\n" - + "\007ingress\030\017 " - + "\001(\0162#.google.cloud.run.v2.IngressTrafficB\003\340A\001\0222\n" + + "\007ingress\030\017" + + " \001(\0162#.google.cloud.run.v2.IngressTrafficB\003\340A\001\0222\n" + "\014launch_stage\030\020 \001(\0162\027.google.api.LaunchStageB\003\340A\001\022K\n" - + "\024binary_authorization\030\021" - + " \001(\0132(.google.cloud.run.v2.BinaryAuthorizationB\003\340A\001\022<\n" + + "\024binary_authorization\030\021 \001(\0132(" + + ".google.cloud.run.v2.BinaryAuthorizationB\003\340A\001\022<\n" + "\010template\030\022" + " \001(\0132%.google.cloud.run.v2.RevisionTemplateB\003\340A\002\0228\n" + "\007traffic\030\023" @@ -149,6 +154,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024invoker_iam_disabled\030\025 \001(\010B\003\340A\001\022!\n" + "\024default_uri_disabled\030\026 \001(\010B\003\340A\001\022\021\n" + "\004urls\030\030 \003(\tB\003\340A\003\022\030\n" + + "\013iap_enabled\030\031 \001(\010B\003\340A\001\022T\n" + + "\025multi_region_settings\030\032" + + " \001(\01320.google.cloud.run.v2.Service.MultiRegionSettingsB\003\340A\001\022\030\n" + "\020custom_audiences\030% \003(\t\022 \n" + "\023observed_generation\030\036 \001(\003B\003\340A\003\022?\n" + "\022terminal_condition\030\037" @@ -161,58 +169,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020traffic_statuses\030#" + " \003(\0132(.google.cloud.run.v2.TrafficTargetStatusB\003\340A\003\022\020\n" + "\003uri\030$ \001(\tB\003\340A\003\022\032\n\r" - + "satisfies_pzs\030& \001(\010B\003\340A\003\022;\n" + + "satisfies_pzs\030& \001(\010B\003\340A\003\022%\n" + + "\030threat_detection_enabled\030( \001(\010B\003\340A\003\022;\n" + "\014build_config\030) \001(\0132" + " .google.cloud.run.v2.BuildConfigB\003\340A\001\022\030\n" + "\013reconciling\030b \001(\010B\003\340A\003\022\021\n" - + "\004etag\030c \001(\tB\003\340A\003\032-\n" + + "\004etag\030c \001(\tB\003\340A\001\032I\n" + + "\023MultiRegionSettings\022\024\n" + + "\007regions\030\001 \003(\tB\003\340A\002\022\034\n" + + "\017multi_region_id\030\002 \001(\tB\003\340A\001\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}/locations/{location}/services/{service}R\001\0012\315\r\n" + + "\032run.googleapis.com/Service\022:projects/{project}/loc" + + "ations/{location}/services/{service}R\001\0012\315\r\n" + "\010Services\022\375\001\n\r" - + "CreateService\022).google.cloud.run.v2.Crea" - + "teServiceRequest\032\035.google.longrunning.Operation\"\241\001\312A\022\n" - + "\007Service\022\007Service\332A\031parent" - + ",service,service_id\202\323\344\223\0027\",/v2/{parent=p" - + "rojects/*/locations/*}/services:\007service\212\323\344\223\002-\022+\n" + + "CreateService\022).google." + + "cloud.run.v2.CreateServiceRequest\032\035.google.longrunning.Operation\"\241\001\312A\022\n" + + "\007Service\022\007Service\332A\031parent,service,service_id\202\323\344\223" + + "\0027\",/v2/{parent=projects/*/locations/*}/services:\007service\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\303\001\n\n" - + "GetService\022&.google.cloud.run.v2.GetServiceRequest\032\034.google.clou" - + "d.run.v2.Service\"o\332A\004name\202\323\344\223\002.\022,/v2/{na" - + "me=projects/*/locations/*/services/*}\212\323\344\223\002.\022,\n" + + "GetService\022&.google.cloud.run.v2.GetServiceRequ" + + "est\032\034.google.cloud.run.v2.Service\"o\332A\004na" + + "me\202\323\344\223\002.\022,/v2/{name=projects/*/locations/*/services/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\325\001\n" - + "\014ListServices\022(.google.cloud.run.v2.ListServicesRequest\032).google.cl" - + "oud.run.v2.ListServicesResponse\"p\332A\006pare" - + "nt\202\323\344\223\002.\022,/v2/{parent=projects/*/locations/*}/services\212\323\344\223\002-\022+\n" + + "\014ListServices\022(.google.cloud.run.v2.ListServicesRe" + + "quest\032).google.cloud.run.v2.ListServices" + + "Response\"p\332A\006parent\202\323\344\223\002.\022,/v2/{parent=projects/*/locations/*}/services\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\222\002\n\r" - + "UpdateService\022).google.cloud.run.v2.UpdateServiceR" - + "equest\032\035.google.longrunning.Operation\"\266\001\312A\022\n" - + "\007Service\022\007Service\332A\007service\332A\023servic" - + "e,update_mask\202\323\344\223\002?24/v2/{service.name=p" - + "rojects/*/locations/*/services/*}:\007service\212\323\344\223\0026\0224\n" + + "UpdateService\022).google.cloud.run." + + "v2.UpdateServiceRequest\032\035.google.longrunning.Operation\"\266\001\312A\022\n" + + "\007Service\022\007Service\332A" + + "\007service\332A\023service,update_mask\202\323\344\223\002?24/v" + + "2/{service.name=projects/*/locations/*/services/*}:\007service\212\323\344\223\0026\0224\n" + "\014service.name\022$projects/*/locations/{location=*}/**\022\340\001\n\r" - + "DeleteService\022).google.cloud.run.v2.DeleteServiceRequ" - + "est\032\035.google.longrunning.Operation\"\204\001\312A\022\n" - + "\007Service\022\007Service\332A\004name\202\323\344\223\002.*,/v2/{na" - + "me=projects/*/locations/*/services/*}\212\323\344\223\002.\022,\n" + + "DeleteService\022).google.cloud.run.v2." + + "DeleteServiceRequest\032\035.google.longrunning.Operation\"\204\001\312A\022\n" + + "\007Service\022\007Service\332A\004na" + + "me\202\323\344\223\002.*,/v2/{name=projects/*/locations/*/services/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\220\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.google.iam.v1.P" - + "olicy\"E\202\323\344\223\002?\022=/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy\022\223\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" - + "cyRequest\032\025.google.iam.v1.Policy\"H\202\323\344\223\002B" - + "\"=/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy:\001*\022\271\001\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermiss" - + "ionsRequest\032).google.iam.v1.TestIamPermi" - + "ssionsResponse\"N\202\323\344\223\002H\"C/v2/{resource=pr" - + "ojects/*/locations/*/services/*}:testIam" - + "Permissions:\001*\032F\312A\022run.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-platformBT\n" - + "\027com.google.cloud.run.v2B\014ServiceProtoP\001Z)cloud.google.com/go/run/apiv2" - + "/runpb;runpbb\006proto3" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032" + + "\025.google.iam.v1.Policy\"E\202\323\344\223\002?\022=/v2/{res" + + "ource=projects/*/locations/*/services/*}:getIamPolicy\022\223\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.google.iam." + + "v1.Policy\"H\202\323\344\223\002B\"=/v2/{resource=project" + + "s/*/locations/*/services/*}:setIamPolicy:\001*\022\271\001\n" + + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissionsRequest\032).google.ia" + + "m.v1.TestIamPermissionsResponse\"N\202\323\344\223\002H\"" + + "C/v2/{resource=projects/*/locations/*/se" + + "rvices/*}:testIamPermissions:\001*\032F\312A\022run." + + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBT\n" + + "\027com.google.cloud.run.v2B\014ServiceProtoP\001Z)cloud.google" + + ".com/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -264,7 +275,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_ListServicesResponse_descriptor, new java.lang.String[] { - "Services", "NextPageToken", + "Services", "NextPageToken", "Unreachable", }); internal_static_google_cloud_run_v2_GetServiceRequest_descriptor = getDescriptor().getMessageTypes().get(4); @@ -311,6 +322,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InvokerIamDisabled", "DefaultUriDisabled", "Urls", + "IapEnabled", + "MultiRegionSettings", "CustomAudiences", "ObservedGeneration", "TerminalCondition", @@ -320,12 +333,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TrafficStatuses", "Uri", "SatisfiesPzs", + "ThreatDetectionEnabled", "BuildConfig", "Reconciling", "Etag", }); - internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_MultiRegionSettings_descriptor = internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_run_v2_Service_MultiRegionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_run_v2_Service_MultiRegionSettings_descriptor, + new java.lang.String[] { + "Regions", "MultiRegionId", + }); + internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor = + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); internal_static_google_cloud_run_v2_Service_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_Service_LabelsEntry_descriptor, @@ -333,7 +355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor = - internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_run_v2_Service_descriptor.getNestedTypes().get(2); internal_static_google_cloud_run_v2_Service_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_Service_AnnotationsEntry_descriptor, diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java index c9722dbd4c20..0d9e46fa58a9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScaling.java @@ -290,6 +290,27 @@ public com.google.cloud.run.v2.ServiceScaling.ScalingMode getScalingMode() { : result; } + public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER = 4; + private int maxInstanceCount_ = 0; + + /** + * + * + *
+   * Optional. total max instances for the service. This number of instances is
+   * divided among all revisions with specified traffic based on the percent
+   * of traffic they are receiving.
+   * 
+ * + * int32 max_instance_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxInstanceCount. + */ + @java.lang.Override + public int getMaxInstanceCount() { + return maxInstanceCount_; + } + public static final int MANUAL_INSTANCE_COUNT_FIELD_NUMBER = 6; private int manualInstanceCount_ = 0; @@ -353,6 +374,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, scalingMode_); } + if (maxInstanceCount_ != 0) { + output.writeInt32(4, maxInstanceCount_); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(6, manualInstanceCount_); } @@ -373,6 +397,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, scalingMode_); } + if (maxInstanceCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxInstanceCount_); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, manualInstanceCount_); } @@ -393,6 +420,7 @@ public boolean equals(final java.lang.Object obj) { if (getMinInstanceCount() != other.getMinInstanceCount()) return false; if (scalingMode_ != other.scalingMode_) return false; + if (getMaxInstanceCount() != other.getMaxInstanceCount()) return false; if (hasManualInstanceCount() != other.hasManualInstanceCount()) return false; if (hasManualInstanceCount()) { if (getManualInstanceCount() != other.getManualInstanceCount()) return false; @@ -412,6 +440,8 @@ public int hashCode() { hash = (53 * hash) + getMinInstanceCount(); hash = (37 * hash) + SCALING_MODE_FIELD_NUMBER; hash = (53 * hash) + scalingMode_; + hash = (37 * hash) + MAX_INSTANCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxInstanceCount(); if (hasManualInstanceCount()) { hash = (37 * hash) + MANUAL_INSTANCE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getManualInstanceCount(); @@ -559,6 +589,7 @@ public Builder clear() { bitField0_ = 0; minInstanceCount_ = 0; scalingMode_ = 0; + maxInstanceCount_ = 0; manualInstanceCount_ = 0; return this; } @@ -602,8 +633,11 @@ private void buildPartial0(com.google.cloud.run.v2.ServiceScaling result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.scalingMode_ = scalingMode_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxInstanceCount_ = maxInstanceCount_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { result.manualInstanceCount_ = manualInstanceCount_; to_bitField0_ |= 0x00000001; } @@ -661,6 +695,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.ServiceScaling other) { if (other.scalingMode_ != 0) { setScalingModeValue(other.getScalingModeValue()); } + if (other.getMaxInstanceCount() != 0) { + setMaxInstanceCount(other.getMaxInstanceCount()); + } if (other.hasManualInstanceCount()) { setManualInstanceCount(other.getManualInstanceCount()); } @@ -702,10 +739,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 24 + case 32: + { + maxInstanceCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 32 case 48: { manualInstanceCount_ = input.readInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 48 default: @@ -896,6 +939,68 @@ public Builder clearScalingMode() { return this; } + private int maxInstanceCount_; + + /** + * + * + *
+     * Optional. total max instances for the service. This number of instances is
+     * divided among all revisions with specified traffic based on the percent
+     * of traffic they are receiving.
+     * 
+ * + * int32 max_instance_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxInstanceCount. + */ + @java.lang.Override + public int getMaxInstanceCount() { + return maxInstanceCount_; + } + + /** + * + * + *
+     * Optional. total max instances for the service. This number of instances is
+     * divided among all revisions with specified traffic based on the percent
+     * of traffic they are receiving.
+     * 
+ * + * int32 max_instance_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxInstanceCount to set. + * @return This builder for chaining. + */ + public Builder setMaxInstanceCount(int value) { + + maxInstanceCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. total max instances for the service. This number of instances is
+     * divided among all revisions with specified traffic based on the percent
+     * of traffic they are receiving.
+     * 
+ * + * int32 max_instance_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxInstanceCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxInstanceCount_ = 0; + onChanged(); + return this; + } + private int manualInstanceCount_; /** @@ -914,7 +1019,7 @@ public Builder clearScalingMode() { */ @java.lang.Override public boolean hasManualInstanceCount() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -954,7 +1059,7 @@ public int getManualInstanceCount() { public Builder setManualInstanceCount(int value) { manualInstanceCount_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -974,7 +1079,7 @@ public Builder setManualInstanceCount(int value) { * @return This builder for chaining. */ public Builder clearManualInstanceCount() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); manualInstanceCount_ = 0; onChanged(); return this; diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java index 2a6ab0661663..07e89de66cd9 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/ServiceScalingOrBuilder.java @@ -69,6 +69,21 @@ public interface ServiceScalingOrBuilder */ com.google.cloud.run.v2.ServiceScaling.ScalingMode getScalingMode(); + /** + * + * + *
+   * Optional. total max instances for the service. This number of instances is
+   * divided among all revisions with specified traffic based on the percent
+   * of traffic they are receiving.
+   * 
+ * + * int32 max_instance_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxInstanceCount. + */ + int getMaxInstanceCount(); + /** * * diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SourceCode.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SourceCode.java new file mode 100644 index 000000000000..958847065987 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SourceCode.java @@ -0,0 +1,1813 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/k8s.min.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.run.v2; + +/** + * + * + *
+ * Source type for the container.
+ * 
+ * + * Protobuf type {@code google.cloud.run.v2.SourceCode} + */ +public final class SourceCode extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.SourceCode) + SourceCodeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SourceCode.newBuilder() to construct. + private SourceCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceCode() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceCode(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.SourceCode.class, + com.google.cloud.run.v2.SourceCode.Builder.class); + } + + public interface CloudStorageSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.SourceCode.CloudStorageSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The Cloud Storage bucket name.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucket. + */ + java.lang.String getBucket(); + + /** + * + * + *
+     * Required. The Cloud Storage bucket name.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); + + /** + * + * + *
+     * Required. The Cloud Storage object name.
+     * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The object. + */ + java.lang.String getObject(); + + /** + * + * + *
+     * Required. The Cloud Storage object name.
+     * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for object. + */ + com.google.protobuf.ByteString getObjectBytes(); + + /** + * + * + *
+     * Optional. The Cloud Storage object generation.
+     * 
+ * + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generation. + */ + long getGeneration(); + } + + /** + * + * + *
+   * Cloud Storage source.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.SourceCode.CloudStorageSource} + */ + public static final class CloudStorageSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.run.v2.SourceCode.CloudStorageSource) + CloudStorageSourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudStorageSource.newBuilder() to construct. + private CloudStorageSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudStorageSource() { + bucket_ = ""; + object_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudStorageSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.SourceCode.CloudStorageSource.class, + com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder.class); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + + /** + * + * + *
+     * Required. The Cloud Storage bucket name.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The Cloud Storage bucket name.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object object_ = ""; + + /** + * + * + *
+     * Required. The Cloud Storage object name.
+     * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The object. + */ + @java.lang.Override + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The Cloud Storage object name.
+     * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for object. + */ + @java.lang.Override + public com.google.protobuf.ByteString getObjectBytes() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_FIELD_NUMBER = 3; + private long generation_ = 0L; + + /** + * + * + *
+     * Optional. The Cloud Storage object generation.
+     * 
+ * + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, object_); + } + if (generation_ != 0L) { + output.writeInt64(3, generation_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); + } + if (generation_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.SourceCode.CloudStorageSource)) { + return super.equals(obj); + } + com.google.cloud.run.v2.SourceCode.CloudStorageSource other = + (com.google.cloud.run.v2.SourceCode.CloudStorageSource) obj; + + if (!getBucket().equals(other.getBucket())) return false; + if (!getObject().equals(other.getObject())) return false; + if (getGeneration() != other.getGeneration()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + hash = (37 * hash) + GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.run.v2.SourceCode.CloudStorageSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Cloud Storage source.
+     * 
+ * + * Protobuf type {@code google.cloud.run.v2.SourceCode.CloudStorageSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.SourceCode.CloudStorageSource) + com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.SourceCode.CloudStorageSource.class, + com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder.class); + } + + // Construct using com.google.cloud.run.v2.SourceCode.CloudStorageSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + object_ = ""; + generation_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_CloudStorageSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSource getDefaultInstanceForType() { + return com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSource build() { + com.google.cloud.run.v2.SourceCode.CloudStorageSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSource buildPartial() { + com.google.cloud.run.v2.SourceCode.CloudStorageSource result = + new com.google.cloud.run.v2.SourceCode.CloudStorageSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.run.v2.SourceCode.CloudStorageSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.object_ = object_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.generation_ = generation_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.SourceCode.CloudStorageSource) { + return mergeFrom((com.google.cloud.run.v2.SourceCode.CloudStorageSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.SourceCode.CloudStorageSource other) { + if (other == com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getObject().isEmpty()) { + object_ = other.object_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getGeneration() != 0L) { + setGeneration(other.getGeneration()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + generation_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object bucket_ = ""; + + /** + * + * + *
+       * Required. The Cloud Storage bucket name.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The Cloud Storage bucket name.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The Cloud Storage bucket name.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Cloud Storage bucket name.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Cloud Storage bucket name.
+       * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object object_ = ""; + + /** + * + * + *
+       * Required. The Cloud Storage object name.
+       * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The object. + */ + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The Cloud Storage object name.
+       * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for object. + */ + public com.google.protobuf.ByteString getObjectBytes() { + java.lang.Object ref = object_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The Cloud Storage object name.
+       * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The object to set. + * @return This builder for chaining. + */ + public Builder setObject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + object_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Cloud Storage object name.
+       * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearObject() { + object_ = getDefaultInstance().getObject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The Cloud Storage object name.
+       * 
+ * + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for object to set. + * @return This builder for chaining. + */ + public Builder setObjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long generation_; + + /** + * + * + *
+       * Optional. The Cloud Storage object generation.
+       * 
+ * + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generation. + */ + @java.lang.Override + public long getGeneration() { + return generation_; + } + + /** + * + * + *
+       * Optional. The Cloud Storage object generation.
+       * 
+ * + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The generation to set. + * @return This builder for chaining. + */ + public Builder setGeneration(long value) { + + generation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The Cloud Storage object generation.
+       * 
+ * + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + generation_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.SourceCode.CloudStorageSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.SourceCode.CloudStorageSource) + private static final com.google.cloud.run.v2.SourceCode.CloudStorageSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.SourceCode.CloudStorageSource(); + } + + public static com.google.cloud.run.v2.SourceCode.CloudStorageSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudStorageSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceType_; + + public enum SourceTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_STORAGE_SOURCE(1), + SOURCETYPE_NOT_SET(0); + private final int value; + + private SourceTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceTypeCase valueOf(int value) { + return forNumber(value); + } + + public static SourceTypeCase forNumber(int value) { + switch (value) { + case 1: + return CLOUD_STORAGE_SOURCE; + case 0: + return SOURCETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceTypeCase getSourceTypeCase() { + return SourceTypeCase.forNumber(sourceTypeCase_); + } + + public static final int CLOUD_STORAGE_SOURCE_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The source is a Cloud Storage bucket.
+   * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + * + * @return Whether the cloudStorageSource field is set. + */ + @java.lang.Override + public boolean hasCloudStorageSource() { + return sourceTypeCase_ == 1; + } + + /** + * + * + *
+   * The source is a Cloud Storage bucket.
+   * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + * + * @return The cloudStorageSource. + */ + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSource getCloudStorageSource() { + if (sourceTypeCase_ == 1) { + return (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_; + } + return com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } + + /** + * + * + *
+   * The source is a Cloud Storage bucket.
+   * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder + getCloudStorageSourceOrBuilder() { + if (sourceTypeCase_ == 1) { + return (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_; + } + return com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sourceTypeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.run.v2.SourceCode)) { + return super.equals(obj); + } + com.google.cloud.run.v2.SourceCode other = (com.google.cloud.run.v2.SourceCode) obj; + + if (!getSourceTypeCase().equals(other.getSourceTypeCase())) return false; + switch (sourceTypeCase_) { + case 1: + if (!getCloudStorageSource().equals(other.getCloudStorageSource())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceTypeCase_) { + case 1: + hash = (37 * hash) + CLOUD_STORAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudStorageSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.run.v2.SourceCode parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.SourceCode parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.run.v2.SourceCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.run.v2.SourceCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Source type for the container.
+   * 
+ * + * Protobuf type {@code google.cloud.run.v2.SourceCode} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.SourceCode) + com.google.cloud.run.v2.SourceCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.run.v2.SourceCode.class, + com.google.cloud.run.v2.SourceCode.Builder.class); + } + + // Construct using com.google.cloud.run.v2.SourceCode.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudStorageSourceBuilder_ != null) { + cloudStorageSourceBuilder_.clear(); + } + sourceTypeCase_ = 0; + sourceType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.run.v2.K8sMinProto + .internal_static_google_cloud_run_v2_SourceCode_descriptor; + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode getDefaultInstanceForType() { + return com.google.cloud.run.v2.SourceCode.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode build() { + com.google.cloud.run.v2.SourceCode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode buildPartial() { + com.google.cloud.run.v2.SourceCode result = new com.google.cloud.run.v2.SourceCode(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.run.v2.SourceCode result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.run.v2.SourceCode result) { + result.sourceTypeCase_ = sourceTypeCase_; + result.sourceType_ = this.sourceType_; + if (sourceTypeCase_ == 1 && cloudStorageSourceBuilder_ != null) { + result.sourceType_ = cloudStorageSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.run.v2.SourceCode) { + return mergeFrom((com.google.cloud.run.v2.SourceCode) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.run.v2.SourceCode other) { + if (other == com.google.cloud.run.v2.SourceCode.getDefaultInstance()) return this; + switch (other.getSourceTypeCase()) { + case CLOUD_STORAGE_SOURCE: + { + mergeCloudStorageSource(other.getCloudStorageSource()); + break; + } + case SOURCETYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCloudStorageSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceTypeCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceTypeCase_ = 0; + private java.lang.Object sourceType_; + + public SourceTypeCase getSourceTypeCase() { + return SourceTypeCase.forNumber(sourceTypeCase_); + } + + public Builder clearSourceType() { + sourceTypeCase_ = 0; + sourceType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SourceCode.CloudStorageSource, + com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder, + com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder> + cloudStorageSourceBuilder_; + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + * + * @return Whether the cloudStorageSource field is set. + */ + @java.lang.Override + public boolean hasCloudStorageSource() { + return sourceTypeCase_ == 1; + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + * + * @return The cloudStorageSource. + */ + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSource getCloudStorageSource() { + if (cloudStorageSourceBuilder_ == null) { + if (sourceTypeCase_ == 1) { + return (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_; + } + return com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } else { + if (sourceTypeCase_ == 1) { + return cloudStorageSourceBuilder_.getMessage(); + } + return com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + public Builder setCloudStorageSource( + com.google.cloud.run.v2.SourceCode.CloudStorageSource value) { + if (cloudStorageSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceType_ = value; + onChanged(); + } else { + cloudStorageSourceBuilder_.setMessage(value); + } + sourceTypeCase_ = 1; + return this; + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + public Builder setCloudStorageSource( + com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder builderForValue) { + if (cloudStorageSourceBuilder_ == null) { + sourceType_ = builderForValue.build(); + onChanged(); + } else { + cloudStorageSourceBuilder_.setMessage(builderForValue.build()); + } + sourceTypeCase_ = 1; + return this; + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + public Builder mergeCloudStorageSource( + com.google.cloud.run.v2.SourceCode.CloudStorageSource value) { + if (cloudStorageSourceBuilder_ == null) { + if (sourceTypeCase_ == 1 + && sourceType_ + != com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance()) { + sourceType_ = + com.google.cloud.run.v2.SourceCode.CloudStorageSource.newBuilder( + (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceType_ = value; + } + onChanged(); + } else { + if (sourceTypeCase_ == 1) { + cloudStorageSourceBuilder_.mergeFrom(value); + } else { + cloudStorageSourceBuilder_.setMessage(value); + } + } + sourceTypeCase_ = 1; + return this; + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + public Builder clearCloudStorageSource() { + if (cloudStorageSourceBuilder_ == null) { + if (sourceTypeCase_ == 1) { + sourceTypeCase_ = 0; + sourceType_ = null; + onChanged(); + } + } else { + if (sourceTypeCase_ == 1) { + sourceTypeCase_ = 0; + sourceType_ = null; + } + cloudStorageSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + public com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder + getCloudStorageSourceBuilder() { + return getCloudStorageSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + @java.lang.Override + public com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder + getCloudStorageSourceOrBuilder() { + if ((sourceTypeCase_ == 1) && (cloudStorageSourceBuilder_ != null)) { + return cloudStorageSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceTypeCase_ == 1) { + return (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_; + } + return com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The source is a Cloud Storage bucket.
+     * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SourceCode.CloudStorageSource, + com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder, + com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder> + getCloudStorageSourceFieldBuilder() { + if (cloudStorageSourceBuilder_ == null) { + if (!(sourceTypeCase_ == 1)) { + sourceType_ = com.google.cloud.run.v2.SourceCode.CloudStorageSource.getDefaultInstance(); + } + cloudStorageSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.run.v2.SourceCode.CloudStorageSource, + com.google.cloud.run.v2.SourceCode.CloudStorageSource.Builder, + com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder>( + (com.google.cloud.run.v2.SourceCode.CloudStorageSource) sourceType_, + getParentForChildren(), + isClean()); + sourceType_ = null; + } + sourceTypeCase_ = 1; + onChanged(); + return cloudStorageSourceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.SourceCode) + } + + // @@protoc_insertion_point(class_scope:google.cloud.run.v2.SourceCode) + private static final com.google.cloud.run.v2.SourceCode DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.run.v2.SourceCode(); + } + + public static com.google.cloud.run.v2.SourceCode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.run.v2.SourceCode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SourceCodeOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SourceCodeOrBuilder.java new file mode 100644 index 000000000000..cb4aa9a76217 --- /dev/null +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SourceCodeOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/run/v2/k8s.min.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.run.v2; + +public interface SourceCodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.SourceCode) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The source is a Cloud Storage bucket.
+   * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + * + * @return Whether the cloudStorageSource field is set. + */ + boolean hasCloudStorageSource(); + + /** + * + * + *
+   * The source is a Cloud Storage bucket.
+   * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + * + * @return The cloudStorageSource. + */ + com.google.cloud.run.v2.SourceCode.CloudStorageSource getCloudStorageSource(); + + /** + * + * + *
+   * The source is a Cloud Storage bucket.
+   * 
+ * + * .google.cloud.run.v2.SourceCode.CloudStorageSource cloud_storage_source = 1; + */ + com.google.cloud.run.v2.SourceCode.CloudStorageSourceOrBuilder getCloudStorageSourceOrBuilder(); + + com.google.cloud.run.v2.SourceCode.SourceTypeCase getSourceTypeCase(); +} diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequest.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequest.java index 40252965c265..0306e27a2788 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequest.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequest.java @@ -45,6 +45,9 @@ private SubmitBuildRequest() { serviceAccount_ = ""; workerPool_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + machineType_ = ""; + releaseTrack_ = 0; + client_ = ""; } @java.lang.Override @@ -509,7 +512,7 @@ public interface BuildpacksBuildOrBuilder * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See - * google/cloud/run/v2/build.proto;l=56 + * google/cloud/run/v2/build.proto;l=57 * @return The runtime. */ @java.lang.Deprecated @@ -525,7 +528,7 @@ public interface BuildpacksBuildOrBuilder * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See - * google/cloud/run/v2/build.proto;l=56 + * google/cloud/run/v2/build.proto;l=57 * @return The bytes for runtime. */ @java.lang.Deprecated @@ -814,7 +817,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See - * google/cloud/run/v2/build.proto;l=56 + * google/cloud/run/v2/build.proto;l=57 * @return The runtime. */ @java.lang.Override @@ -841,7 +844,7 @@ public java.lang.String getRuntime() { * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See - * google/cloud/run/v2/build.proto;l=56 + * google/cloud/run/v2/build.proto;l=57 * @return The bytes for runtime. */ @java.lang.Override @@ -1769,7 +1772,7 @@ public Builder mergeFrom( * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. - * See google/cloud/run/v2/build.proto;l=56 + * See google/cloud/run/v2/build.proto;l=57 * @return The runtime. */ @java.lang.Deprecated @@ -1795,7 +1798,7 @@ public java.lang.String getRuntime() { * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. - * See google/cloud/run/v2/build.proto;l=56 + * See google/cloud/run/v2/build.proto;l=57 * @return The bytes for runtime. */ @java.lang.Deprecated @@ -1821,7 +1824,7 @@ public com.google.protobuf.ByteString getRuntimeBytes() { * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. - * See google/cloud/run/v2/build.proto;l=56 + * See google/cloud/run/v2/build.proto;l=57 * @param value The runtime to set. * @return This builder for chaining. */ @@ -1846,7 +1849,7 @@ public Builder setRuntime(java.lang.String value) { * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. - * See google/cloud/run/v2/build.proto;l=56 + * See google/cloud/run/v2/build.proto;l=57 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1867,7 +1870,7 @@ public Builder clearRuntime() { * string runtime = 1 [deprecated = true]; * * @deprecated google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. - * See google/cloud/run/v2/build.proto;l=56 + * See google/cloud/run/v2/build.proto;l=57 * @param value The bytes for runtime to set. * @return This builder for chaining. */ @@ -3251,6 +3254,154 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } + public static final int MACHINE_TYPE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object machineType_ = ""; + + /** + * + * + *
+   * Optional. The machine type from default pool to use for the build. If left
+   * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+   * is supported. If worker_pool is set, this field will be ignored.
+   * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + @java.lang.Override + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The machine type from default pool to use for the build. If left
+   * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+   * is supported. If worker_pool is set, this field will be ignored.
+   * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_TRACK_FIELD_NUMBER = 10; + private int releaseTrack_ = 0; + + /** + * + * + *
+   * Optional. The release track of the client that initiated the build request.
+   * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for releaseTrack. + */ + @java.lang.Override + public int getReleaseTrackValue() { + return releaseTrack_; + } + + /** + * + * + *
+   * Optional. The release track of the client that initiated the build request.
+   * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The releaseTrack. + */ + @java.lang.Override + public com.google.api.LaunchStage getReleaseTrack() { + com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(releaseTrack_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; + } + + public static final int CLIENT_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object client_ = ""; + + /** + * + * + *
+   * Optional. The client that initiated the build request.
+   * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The client. + */ + @java.lang.Override + public java.lang.String getClient() { + java.lang.Object ref = client_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + client_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The client that initiated the build request.
+   * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for client. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientBytes() { + java.lang.Object ref = client_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + client_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3290,6 +3441,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, tags_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, machineType_); + } + if (releaseTrack_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + output.writeEnum(10, releaseTrack_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(client_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, client_); + } getUnknownFields().writeTo(output); } @@ -3334,6 +3494,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, machineType_); + } + if (releaseTrack_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, releaseTrack_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(client_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, client_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3355,6 +3524,9 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getWorkerPool().equals(other.getWorkerPool())) return false; if (!getTagsList().equals(other.getTagsList())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; + if (releaseTrack_ != other.releaseTrack_) return false; + if (!getClient().equals(other.getClient())) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: @@ -3397,6 +3569,12 @@ public int hashCode() { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } + hash = (37 * hash) + MACHINE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMachineType().hashCode(); + hash = (37 * hash) + RELEASE_TRACK_FIELD_NUMBER; + hash = (53 * hash) + releaseTrack_; + hash = (37 * hash) + CLIENT_FIELD_NUMBER; + hash = (53 * hash) + getClient().hashCode(); switch (sourceCase_) { case 2: hash = (37 * hash) + STORAGE_SOURCE_FIELD_NUMBER; @@ -3571,6 +3749,9 @@ public Builder clear() { serviceAccount_ = ""; workerPool_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + machineType_ = ""; + releaseTrack_ = 0; + client_ = ""; sourceCase_ = 0; source_ = null; buildTypeCase_ = 0; @@ -3628,6 +3809,15 @@ private void buildPartial0(com.google.cloud.run.v2.SubmitBuildRequest result) { tags_.makeImmutable(); result.tags_ = tags_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.machineType_ = machineType_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.releaseTrack_ = releaseTrack_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.client_ = client_; + } } private void buildPartialOneofs(com.google.cloud.run.v2.SubmitBuildRequest result) { @@ -3721,6 +3911,19 @@ public Builder mergeFrom(com.google.cloud.run.v2.SubmitBuildRequest other) { } onChanged(); } + if (!other.getMachineType().isEmpty()) { + machineType_ = other.machineType_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.releaseTrack_ != 0) { + setReleaseTrackValue(other.getReleaseTrackValue()); + } + if (!other.getClient().isEmpty()) { + client_ = other.client_; + bitField0_ |= 0x00000400; + onChanged(); + } switch (other.getSourceCase()) { case STORAGE_SOURCE: { @@ -3823,6 +4026,24 @@ public Builder mergeFrom( tags_.add(s); break; } // case 66 + case 74: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 80: + { + releaseTrack_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + client_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5230,6 +5451,337 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object machineType_ = ""; + + /** + * + * + *
+     * Optional. The machine type from default pool to use for the build. If left
+     * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+     * is supported. If worker_pool is set, this field will be ignored.
+     * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + public java.lang.String getMachineType() { + java.lang.Object ref = machineType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + machineType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The machine type from default pool to use for the build. If left
+     * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+     * is supported. If worker_pool is set, this field will be ignored.
+     * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + public com.google.protobuf.ByteString getMachineTypeBytes() { + java.lang.Object ref = machineType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + machineType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The machine type from default pool to use for the build. If left
+     * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+     * is supported. If worker_pool is set, this field will be ignored.
+     * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + machineType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The machine type from default pool to use for the build. If left
+     * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+     * is supported. If worker_pool is set, this field will be ignored.
+     * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMachineType() { + machineType_ = getDefaultInstance().getMachineType(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The machine type from default pool to use for the build. If left
+     * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+     * is supported. If worker_pool is set, this field will be ignored.
+     * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for machineType to set. + * @return This builder for chaining. + */ + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int releaseTrack_ = 0; + + /** + * + * + *
+     * Optional. The release track of the client that initiated the build request.
+     * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for releaseTrack. + */ + @java.lang.Override + public int getReleaseTrackValue() { + return releaseTrack_; + } + + /** + * + * + *
+     * Optional. The release track of the client that initiated the build request.
+     * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for releaseTrack to set. + * @return This builder for chaining. + */ + public Builder setReleaseTrackValue(int value) { + releaseTrack_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The release track of the client that initiated the build request.
+     * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The releaseTrack. + */ + @java.lang.Override + public com.google.api.LaunchStage getReleaseTrack() { + com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(releaseTrack_); + return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The release track of the client that initiated the build request.
+     * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The releaseTrack to set. + * @return This builder for chaining. + */ + public Builder setReleaseTrack(com.google.api.LaunchStage value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + releaseTrack_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The release track of the client that initiated the build request.
+     * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReleaseTrack() { + bitField0_ = (bitField0_ & ~0x00000200); + releaseTrack_ = 0; + onChanged(); + return this; + } + + private java.lang.Object client_ = ""; + + /** + * + * + *
+     * Optional. The client that initiated the build request.
+     * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The client. + */ + public java.lang.String getClient() { + java.lang.Object ref = client_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + client_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The client that initiated the build request.
+     * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for client. + */ + public com.google.protobuf.ByteString getClientBytes() { + java.lang.Object ref = client_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + client_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The client that initiated the build request.
+     * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The client to set. + * @return This builder for chaining. + */ + public Builder setClient(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + client_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client that initiated the build request.
+     * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClient() { + client_ = getDefaultInstance().getClient(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client that initiated the build request.
+     * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for client to set. + * @return This builder for chaining. + */ + public Builder setClientBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + client_ = value; + bitField0_ |= 0x00000400; + 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/SubmitBuildRequestOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequestOrBuilder.java index 933c345f0151..93fda236762a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequestOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/SubmitBuildRequestOrBuilder.java @@ -321,6 +321,90 @@ public interface SubmitBuildRequestOrBuilder */ com.google.protobuf.ByteString getTagsBytes(int index); + /** + * + * + *
+   * Optional. The machine type from default pool to use for the build. If left
+   * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+   * is supported. If worker_pool is set, this field will be ignored.
+   * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The machineType. + */ + java.lang.String getMachineType(); + + /** + * + * + *
+   * Optional. The machine type from default pool to use for the build. If left
+   * blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
+   * is supported. If worker_pool is set, this field will be ignored.
+   * 
+ * + * string machine_type = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for machineType. + */ + com.google.protobuf.ByteString getMachineTypeBytes(); + + /** + * + * + *
+   * Optional. The release track of the client that initiated the build request.
+   * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for releaseTrack. + */ + int getReleaseTrackValue(); + + /** + * + * + *
+   * Optional. The release track of the client that initiated the build request.
+   * 
+ * + * .google.api.LaunchStage release_track = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The releaseTrack. + */ + com.google.api.LaunchStage getReleaseTrack(); + + /** + * + * + *
+   * Optional. The client that initiated the build request.
+   * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The client. + */ + java.lang.String getClient(); + + /** + * + * + *
+   * Optional. The client that initiated the build request.
+   * 
+ * + * string client = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for client. + */ + com.google.protobuf.ByteString getClientBytes(); + com.google.cloud.run.v2.SubmitBuildRequest.SourceCase getSourceCase(); com.google.cloud.run.v2.SubmitBuildRequest.BuildTypeCase getBuildTypeCase(); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java index 85fa54628bfa..43a2d595ef76 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VendorSettingsProto.java @@ -107,11 +107,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022max_instance_count\030\002 \001(\005B\003\340A\001\"E\n" + "\013ServiceMesh\0226\n" + "\004mesh\030\001 \001(\tB(\372A%\n" - + "#networkservices.googleapis.com/Mesh\"\210\002\n" + + "#networkservices.googleapis.com/Mesh\"\251\002\n" + "\016ServiceScaling\022\037\n" + "\022min_instance_count\030\001 \001(\005B\003\340A\001\022J\n" + "\014scaling_mode\030\003 \001(" - + "\0162/.google.cloud.run.v2.ServiceScaling.ScalingModeB\003\340A\001\022\'\n" + + "\0162/.google.cloud.run.v2.ServiceScaling.ScalingModeB\003\340A\001\022\037\n" + + "\022max_instance_count\030\004 \001(\005B\003\340A\001\022\'\n" + "\025manual_instance_count\030\006 \001(\005B\003\340A\001H\000\210\001\001\"F\n" + "\013ScalingMode\022\034\n" + "\030SCALING_MODE_UNSPECIFIED\020\000\022\r\n" @@ -133,8 +134,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030enable_automatic_updates\030\006 \001(\010B\003\340A\001\022F\n" + "\013worker_pool\030\007 \001(\tB1\340A\001\372A+\n" + ")cloudbuild.googleapis.com/BuildWorkerPool\022^\n" - + "\025environment_variables\030\010 \003(" - + "\0132:.google.cloud.run.v2.BuildConfig.EnvironmentVariablesEntryB\003\340A\001\022\034\n" + + "\025environment_variables\030\010 \003(\0132:.goo" + + "gle.cloud.run.v2.BuildConfig.EnvironmentVariablesEntryB\003\340A\001\022\034\n" + "\017service_account\030\t \001(\tB\003\340A\001\032;\n" + "\031EnvironmentVariablesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -153,14 +154,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED\020\000\022\017\n" + "\013PREVENT_NEW\020\001\022\014\n" + "\010SHUTDOWN\020\002B\374\002\n" - + "\027com.google.clou" - + "d.run.v2B\023VendorSettingsProtoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpb\352Ac\n" - + ")binaryauthorization.googleapis.com/Policy" - + "\022\031projects/{project}/policy\022\033locations/{location}/policy\352A\\\n" - + "#networkservices.goo" - + "gleapis.com/Mesh\0225projects/{project}/locations/{location}/meshes/{mesh}\352AY\n" - + "\037cloudbuild.googleapis.com/Build\0226projects/{p" - + "roject}/locations/{location}/builds/{build}b\006proto3" + + "\027com.google.cloud.run.v" + + "2B\023VendorSettingsProtoP\001Z)cloud.google.com/go/run/apiv2/runpb;runpb\352Ac\n" + + ")binaryauthorization.googleapis.com/Policy\022\031proje" + + "cts/{project}/policy\022\033locations/{location}/policy\352A\\\n" + + "#networkservices.googleapis" + + ".com/Mesh\0225projects/{project}/locations/{location}/meshes/{mesh}\352AY\n" + + "\037cloudbuild.googleapis.com/Build\0226projects/{project}" + + "/locations/{location}/builds/{build}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -215,7 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_run_v2_ServiceScaling_descriptor, new java.lang.String[] { - "MinInstanceCount", "ScalingMode", "ManualInstanceCount", + "MinInstanceCount", "ScalingMode", "MaxInstanceCount", "ManualInstanceCount", }); internal_static_google_cloud_run_v2_WorkerPoolScaling_descriptor = getDescriptor().getMessageTypes().get(5); diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java index e3c09d59454a..a3d5ba9a473f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMount.java @@ -42,6 +42,7 @@ private VolumeMount(com.google.protobuf.GeneratedMessageV3.Builder builder) { private VolumeMount() { name_ = ""; mountPath_ = ""; + subPath_ = ""; } @java.lang.Override @@ -179,6 +180,61 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } + public static final int SUB_PATH_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object subPath_ = ""; + + /** + * + * + *
+   * Optional. Path within the volume from which the container's volume should
+   * be mounted. Defaults to "" (volume's root).
+   * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subPath. + */ + @java.lang.Override + public java.lang.String getSubPath() { + java.lang.Object ref = subPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subPath_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Path within the volume from which the container's volume should
+   * be mounted. Defaults to "" (volume's root).
+   * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubPathBytes() { + java.lang.Object ref = subPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -199,6 +255,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mountPath_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subPath_); + } getUnknownFields().writeTo(output); } @@ -214,6 +273,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mountPath_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subPath_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -231,6 +293,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getMountPath().equals(other.getMountPath())) return false; + if (!getSubPath().equals(other.getSubPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,6 +309,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + MOUNT_PATH_FIELD_NUMBER; hash = (53 * hash) + getMountPath().hashCode(); + hash = (37 * hash) + SUB_PATH_FIELD_NUMBER; + hash = (53 * hash) + getSubPath().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -387,6 +452,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; mountPath_ = ""; + subPath_ = ""; return this; } @@ -428,6 +494,9 @@ private void buildPartial0(com.google.cloud.run.v2.VolumeMount result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.mountPath_ = mountPath_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subPath_ = subPath_; + } } @java.lang.Override @@ -485,6 +554,11 @@ public Builder mergeFrom(com.google.cloud.run.v2.VolumeMount other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.getSubPath().isEmpty()) { + subPath_ = other.subPath_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -523,6 +597,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + subPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -784,6 +864,122 @@ public Builder setMountPathBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object subPath_ = ""; + + /** + * + * + *
+     * Optional. Path within the volume from which the container's volume should
+     * be mounted. Defaults to "" (volume's root).
+     * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subPath. + */ + public java.lang.String getSubPath() { + java.lang.Object ref = subPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Path within the volume from which the container's volume should
+     * be mounted. Defaults to "" (volume's root).
+     * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subPath. + */ + public com.google.protobuf.ByteString getSubPathBytes() { + java.lang.Object ref = subPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Path within the volume from which the container's volume should
+     * be mounted. Defaults to "" (volume's root).
+     * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subPath to set. + * @return This builder for chaining. + */ + public Builder setSubPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subPath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path within the volume from which the container's volume should
+     * be mounted. Defaults to "" (volume's root).
+     * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubPath() { + subPath_ = getDefaultInstance().getSubPath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Path within the volume from which the container's volume should
+     * be mounted. Defaults to "" (volume's root).
+     * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for subPath to set. + * @return This builder for chaining. + */ + public Builder setSubPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subPath_ = value; + bitField0_ |= 0x00000004; + 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/VolumeMountOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java index 89dc8d44b444..7f014009666d 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/VolumeMountOrBuilder.java @@ -83,4 +83,32 @@ public interface VolumeMountOrBuilder * @return The bytes for mountPath. */ com.google.protobuf.ByteString getMountPathBytes(); + + /** + * + * + *
+   * Optional. Path within the volume from which the container's volume should
+   * be mounted. Defaults to "" (volume's root).
+   * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The subPath. + */ + java.lang.String getSubPath(); + + /** + * + * + *
+   * Optional. Path within the volume from which the container's volume should
+   * be mounted. Defaults to "" (volume's root).
+   * 
+ * + * string sub_path = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for subPath. + */ + com.google.protobuf.ByteString getSubPathBytes(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java index 85ee0bb0be95..b0ac36aa5f56 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPool.java @@ -1360,7 +1360,7 @@ public com.google.cloud.run.v2.WorkerPoolScalingOrBuilder getScalingOrBuilder() * * *
-   * Output only. The generation of this WorkerPool currently serving traffic.
+   * Output only. The generation of this WorkerPool currently serving workloads.
    * See comments in `reconciling` for additional information on reconciliation
    * process in Cloud Run. Please note that unlike v1, this is an int64 value.
    * As with most Google APIs, its JSON representation will be a `string`
@@ -1554,7 +1554,7 @@ public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int ind
    *
    *
    * 
-   * Output only. Name of the latest revision that is serving traffic. See
+   * Output only. Name of the latest revision that is serving workloads. See
    * comments in `reconciling` for additional information on reconciliation
    * process in Cloud Run.
    * 
@@ -1582,7 +1582,7 @@ public java.lang.String getLatestReadyRevision() { * * *
-   * Output only. Name of the latest revision that is serving traffic. See
+   * Output only. Name of the latest revision that is serving workloads. See
    * comments in `reconciling` for additional information on reconciliation
    * process in Cloud Run.
    * 
@@ -1765,6 +1765,26 @@ public com.google.cloud.run.v2.InstanceSplitStatusOrBuilder getInstanceSplitStat return instanceSplitStatuses_.get(index); } + public static final int THREAT_DETECTION_ENABLED_FIELD_NUMBER = 28; + private boolean threatDetectionEnabled_ = false; + + /** + * + * + *
+   * Output only. Indicates whether Cloud Run Threat Detection monitoring is
+   * enabled for the parent project of this worker pool.
+   * 
+ * + * bool threat_detection_enabled = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The threatDetectionEnabled. + */ + @java.lang.Override + public boolean getThreatDetectionEnabled() { + return threatDetectionEnabled_; + } + public static final int CUSTOM_AUDIENCES_FIELD_NUMBER = 37; @SuppressWarnings("serial") @@ -1775,11 +1795,7 @@ public com.google.cloud.run.v2.InstanceSplitStatusOrBuilder getInstanceSplitStat * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1794,11 +1810,7 @@ public com.google.protobuf.ProtocolStringList getCustomAudiencesList() { * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1813,11 +1825,7 @@ public int getCustomAudiencesCount() { * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1833,11 +1841,7 @@ public java.lang.String getCustomAudiences(int index) { * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1882,21 +1886,21 @@ public boolean getSatisfiesPzs() { * will asynchronously perform all necessary steps to bring the WorkerPool to * the desired serving state. This process is called reconciliation. While * reconciliation is in process, `observed_generation`, - * `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - * values that might mismatch the intended state: Once reconciliation is over - * (and this field is false), there are two possible outcomes: reconciliation - * succeeded and the serving state matches the WorkerPool, or there was an - * error, and reconciliation failed. This state can be found in - * `terminal_condition.state`. - * - * If reconciliation succeeded, the following fields will match: `traffic` and - * `traffic_statuses`, `observed_generation` and `generation`, - * `latest_ready_revision` and `latest_created_revision`. - * - * If reconciliation failed, `traffic_statuses`, `observed_generation`, and - * `latest_ready_revision` will have the state of the last serving revision, - * or empty for newly created WorkerPools. Additional information on the - * failure can be found in `terminal_condition` and `conditions`. + * `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + * transient values that might mismatch the intended state: Once + * reconciliation is over (and this field is false), there are two possible + * outcomes: reconciliation succeeded and the serving state matches the + * WorkerPool, or there was an error, and reconciliation failed. This state + * can be found in `terminal_condition.state`. + * + * If reconciliation succeeded, the following fields will match: + * `instance_splits` and `instance_split_statuses`, `observed_generation` and + * `generation`, `latest_ready_revision` and `latest_created_revision`. + * + * If reconciliation failed, `instance_split_statuses`, `observed_generation`, + * and `latest_ready_revision` will have the state of the last serving + * revision, or empty for newly created WorkerPools. Additional information on + * the failure can be found in `terminal_condition` and `conditions`. *
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1917,11 +1921,11 @@ public boolean getReconciling() { * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -1942,11 +1946,11 @@ public java.lang.String getEtag() { * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -2035,6 +2039,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < instanceSplitStatuses_.size(); i++) { output.writeMessage(27, instanceSplitStatuses_.get(i)); } + if (threatDetectionEnabled_ != false) { + output.writeBool(28, threatDetectionEnabled_); + } if (observedGeneration_ != 0L) { output.writeInt64(30, observedGeneration_); } @@ -2148,6 +2155,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 27, instanceSplitStatuses_.get(i)); } + if (threatDetectionEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(28, threatDetectionEnabled_); + } if (observedGeneration_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(30, observedGeneration_); } @@ -2244,6 +2254,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLatestReadyRevision().equals(other.getLatestReadyRevision())) return false; if (!getLatestCreatedRevision().equals(other.getLatestCreatedRevision())) return false; if (!getInstanceSplitStatusesList().equals(other.getInstanceSplitStatusesList())) return false; + if (getThreatDetectionEnabled() != other.getThreatDetectionEnabled()) return false; if (!getCustomAudiencesList().equals(other.getCustomAudiencesList())) return false; if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; if (getReconciling() != other.getReconciling()) return false; @@ -2335,6 +2346,8 @@ public int hashCode() { hash = (37 * hash) + INSTANCE_SPLIT_STATUSES_FIELD_NUMBER; hash = (53 * hash) + getInstanceSplitStatusesList().hashCode(); } + hash = (37 * hash) + THREAT_DETECTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThreatDetectionEnabled()); if (getCustomAudiencesCount() > 0) { hash = (37 * hash) + CUSTOM_AUDIENCES_FIELD_NUMBER; hash = (53 * hash) + getCustomAudiencesList().hashCode(); @@ -2608,6 +2621,7 @@ public Builder clear() { instanceSplitStatusesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x01000000); + threatDetectionEnabled_ = false; customAudiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); satisfiesPzs_ = false; reconciling_ = false; @@ -2762,16 +2776,19 @@ private void buildPartial0(com.google.cloud.run.v2.WorkerPool result) { result.latestCreatedRevision_ = latestCreatedRevision_; } if (((from_bitField0_ & 0x02000000) != 0)) { + result.threatDetectionEnabled_ = threatDetectionEnabled_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { customAudiences_.makeImmutable(); result.customAudiences_ = customAudiences_; } - if (((from_bitField0_ & 0x04000000) != 0)) { + if (((from_bitField0_ & 0x08000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } - if (((from_bitField0_ & 0x08000000) != 0)) { + if (((from_bitField0_ & 0x10000000) != 0)) { result.reconciling_ = reconciling_; } - if (((from_bitField0_ & 0x10000000) != 0)) { + if (((from_bitField0_ & 0x20000000) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -2985,10 +3002,13 @@ public Builder mergeFrom(com.google.cloud.run.v2.WorkerPool other) { } } } + if (other.getThreatDetectionEnabled() != false) { + setThreatDetectionEnabled(other.getThreatDetectionEnabled()); + } if (!other.customAudiences_.isEmpty()) { if (customAudiences_.isEmpty()) { customAudiences_ = other.customAudiences_; - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; } else { ensureCustomAudiencesIsMutable(); customAudiences_.addAll(other.customAudiences_); @@ -3003,7 +3023,7 @@ public Builder mergeFrom(com.google.cloud.run.v2.WorkerPool other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -3179,6 +3199,12 @@ public Builder mergeFrom( } break; } // case 218 + case 224: + { + threatDetectionEnabled_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 224 case 240: { observedGeneration_ = input.readInt64(); @@ -3227,19 +3253,19 @@ public Builder mergeFrom( case 304: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; break; } // case 304 case 784: { reconciling_ = input.readBool(); - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; break; } // case 784 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; break; } // case 794 default: @@ -6754,7 +6780,7 @@ public com.google.cloud.run.v2.WorkerPoolScalingOrBuilder getScalingOrBuilder() * * *
-     * Output only. The generation of this WorkerPool currently serving traffic.
+     * Output only. The generation of this WorkerPool currently serving workloads.
      * See comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run. Please note that unlike v1, this is an int64 value.
      * As with most Google APIs, its JSON representation will be a `string`
@@ -6774,7 +6800,7 @@ public long getObservedGeneration() {
      *
      *
      * 
-     * Output only. The generation of this WorkerPool currently serving traffic.
+     * Output only. The generation of this WorkerPool currently serving workloads.
      * See comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run. Please note that unlike v1, this is an int64 value.
      * As with most Google APIs, its JSON representation will be a `string`
@@ -6798,7 +6824,7 @@ public Builder setObservedGeneration(long value) {
      *
      *
      * 
-     * Output only. The generation of this WorkerPool currently serving traffic.
+     * Output only. The generation of this WorkerPool currently serving workloads.
      * See comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run. Please note that unlike v1, this is an int64 value.
      * As with most Google APIs, its JSON representation will be a `string`
@@ -7516,7 +7542,7 @@ public java.util.List getConditionsBu
      *
      *
      * 
-     * Output only. Name of the latest revision that is serving traffic. See
+     * Output only. Name of the latest revision that is serving workloads. See
      * comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run.
      * 
@@ -7543,7 +7569,7 @@ public java.lang.String getLatestReadyRevision() { * * *
-     * Output only. Name of the latest revision that is serving traffic. See
+     * Output only. Name of the latest revision that is serving workloads. See
      * comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run.
      * 
@@ -7570,7 +7596,7 @@ public com.google.protobuf.ByteString getLatestReadyRevisionBytes() { * * *
-     * Output only. Name of the latest revision that is serving traffic. See
+     * Output only. Name of the latest revision that is serving workloads. See
      * comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run.
      * 
@@ -7596,7 +7622,7 @@ public Builder setLatestReadyRevision(java.lang.String value) { * * *
-     * Output only. Name of the latest revision that is serving traffic. See
+     * Output only. Name of the latest revision that is serving workloads. See
      * comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run.
      * 
@@ -7618,7 +7644,7 @@ public Builder clearLatestReadyRevision() { * * *
-     * Output only. Name of the latest revision that is serving traffic. See
+     * Output only. Name of the latest revision that is serving workloads. See
      * comments in `reconciling` for additional information on reconciliation
      * process in Cloud Run.
      * 
@@ -8222,6 +8248,65 @@ public com.google.cloud.run.v2.InstanceSplitStatus.Builder addInstanceSplitStatu return instanceSplitStatusesBuilder_; } + private boolean threatDetectionEnabled_; + + /** + * + * + *
+     * Output only. Indicates whether Cloud Run Threat Detection monitoring is
+     * enabled for the parent project of this worker pool.
+     * 
+ * + * bool threat_detection_enabled = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The threatDetectionEnabled. + */ + @java.lang.Override + public boolean getThreatDetectionEnabled() { + return threatDetectionEnabled_; + } + + /** + * + * + *
+     * Output only. Indicates whether Cloud Run Threat Detection monitoring is
+     * enabled for the parent project of this worker pool.
+     * 
+ * + * bool threat_detection_enabled = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The threatDetectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setThreatDetectionEnabled(boolean value) { + + threatDetectionEnabled_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Indicates whether Cloud Run Threat Detection monitoring is
+     * enabled for the parent project of this worker pool.
+     * 
+ * + * bool threat_detection_enabled = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearThreatDetectionEnabled() { + bitField0_ = (bitField0_ & ~0x02000000); + threatDetectionEnabled_ = false; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringArrayList customAudiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -8229,18 +8314,14 @@ private void ensureCustomAudiencesIsMutable() { if (!customAudiences_.isModifiable()) { customAudiences_ = new com.google.protobuf.LazyStringArrayList(customAudiences_); } - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; } /** * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8256,11 +8337,7 @@ public com.google.protobuf.ProtocolStringList getCustomAudiencesList() { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8275,11 +8352,7 @@ public int getCustomAudiencesCount() { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8295,11 +8368,7 @@ public java.lang.String getCustomAudiences(int index) { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8315,11 +8384,7 @@ public com.google.protobuf.ByteString getCustomAudiencesBytes(int index) { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8334,7 +8399,7 @@ public Builder setCustomAudiences(int index, java.lang.String value) { } ensureCustomAudiencesIsMutable(); customAudiences_.set(index, value); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8343,11 +8408,7 @@ public Builder setCustomAudiences(int index, java.lang.String value) { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8361,7 +8422,7 @@ public Builder addCustomAudiences(java.lang.String value) { } ensureCustomAudiencesIsMutable(); customAudiences_.add(value); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8370,11 +8431,7 @@ public Builder addCustomAudiences(java.lang.String value) { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8385,7 +8442,7 @@ public Builder addCustomAudiences(java.lang.String value) { public Builder addAllCustomAudiences(java.lang.Iterable values) { ensureCustomAudiencesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customAudiences_); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8394,11 +8451,7 @@ public Builder addAllCustomAudiences(java.lang.Iterable values * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8407,7 +8460,7 @@ public Builder addAllCustomAudiences(java.lang.Iterable values */ public Builder clearCustomAudiences() { customAudiences_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x02000000); + bitField0_ = (bitField0_ & ~0x04000000); ; onChanged(); return this; @@ -8417,11 +8470,7 @@ public Builder clearCustomAudiences() { * * *
-     * One or more custom audiences that you want this worker pool to support.
-     * Specify each custom audience as the full URL in a string. The custom
-     * audiences are encoded in the token and used to authenticate requests. For
-     * more information, see
-     * https://cloud.google.com/run/docs/configuring/custom-audiences.
+     * Not supported, and ignored by Cloud Run.
      * 
* * repeated string custom_audiences = 37; @@ -8436,7 +8485,7 @@ public Builder addCustomAudiencesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCustomAudiencesIsMutable(); customAudiences_.add(value); - bitField0_ |= 0x02000000; + bitField0_ |= 0x04000000; onChanged(); return this; } @@ -8474,7 +8523,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x04000000; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -8491,7 +8540,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x04000000); + bitField0_ = (bitField0_ & ~0x08000000); satisfiesPzs_ = false; onChanged(); return this; @@ -8510,21 +8559,21 @@ public Builder clearSatisfiesPzs() { * will asynchronously perform all necessary steps to bring the WorkerPool to * the desired serving state. This process is called reconciliation. While * reconciliation is in process, `observed_generation`, - * `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - * values that might mismatch the intended state: Once reconciliation is over - * (and this field is false), there are two possible outcomes: reconciliation - * succeeded and the serving state matches the WorkerPool, or there was an - * error, and reconciliation failed. This state can be found in - * `terminal_condition.state`. + * `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + * transient values that might mismatch the intended state: Once + * reconciliation is over (and this field is false), there are two possible + * outcomes: reconciliation succeeded and the serving state matches the + * WorkerPool, or there was an error, and reconciliation failed. This state + * can be found in `terminal_condition.state`. * - * If reconciliation succeeded, the following fields will match: `traffic` and - * `traffic_statuses`, `observed_generation` and `generation`, - * `latest_ready_revision` and `latest_created_revision`. + * If reconciliation succeeded, the following fields will match: + * `instance_splits` and `instance_split_statuses`, `observed_generation` and + * `generation`, `latest_ready_revision` and `latest_created_revision`. * - * If reconciliation failed, `traffic_statuses`, `observed_generation`, and - * `latest_ready_revision` will have the state of the last serving revision, - * or empty for newly created WorkerPools. Additional information on the - * failure can be found in `terminal_condition` and `conditions`. + * If reconciliation failed, `instance_split_statuses`, `observed_generation`, + * and `latest_ready_revision` will have the state of the last serving + * revision, or empty for newly created WorkerPools. Additional information on + * the failure can be found in `terminal_condition` and `conditions`. *
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8547,21 +8596,21 @@ public boolean getReconciling() { * will asynchronously perform all necessary steps to bring the WorkerPool to * the desired serving state. This process is called reconciliation. While * reconciliation is in process, `observed_generation`, - * `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - * values that might mismatch the intended state: Once reconciliation is over - * (and this field is false), there are two possible outcomes: reconciliation - * succeeded and the serving state matches the WorkerPool, or there was an - * error, and reconciliation failed. This state can be found in - * `terminal_condition.state`. + * `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + * transient values that might mismatch the intended state: Once + * reconciliation is over (and this field is false), there are two possible + * outcomes: reconciliation succeeded and the serving state matches the + * WorkerPool, or there was an error, and reconciliation failed. This state + * can be found in `terminal_condition.state`. * - * If reconciliation succeeded, the following fields will match: `traffic` and - * `traffic_statuses`, `observed_generation` and `generation`, - * `latest_ready_revision` and `latest_created_revision`. + * If reconciliation succeeded, the following fields will match: + * `instance_splits` and `instance_split_statuses`, `observed_generation` and + * `generation`, `latest_ready_revision` and `latest_created_revision`. * - * If reconciliation failed, `traffic_statuses`, `observed_generation`, and - * `latest_ready_revision` will have the state of the last serving revision, - * or empty for newly created WorkerPools. Additional information on the - * failure can be found in `terminal_condition` and `conditions`. + * If reconciliation failed, `instance_split_statuses`, `observed_generation`, + * and `latest_ready_revision` will have the state of the last serving + * revision, or empty for newly created WorkerPools. Additional information on + * the failure can be found in `terminal_condition` and `conditions`. *
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8572,7 +8621,7 @@ public boolean getReconciling() { public Builder setReconciling(boolean value) { reconciling_ = value; - bitField0_ |= 0x08000000; + bitField0_ |= 0x10000000; onChanged(); return this; } @@ -8588,21 +8637,21 @@ public Builder setReconciling(boolean value) { * will asynchronously perform all necessary steps to bring the WorkerPool to * the desired serving state. This process is called reconciliation. While * reconciliation is in process, `observed_generation`, - * `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - * values that might mismatch the intended state: Once reconciliation is over - * (and this field is false), there are two possible outcomes: reconciliation - * succeeded and the serving state matches the WorkerPool, or there was an - * error, and reconciliation failed. This state can be found in - * `terminal_condition.state`. + * `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + * transient values that might mismatch the intended state: Once + * reconciliation is over (and this field is false), there are two possible + * outcomes: reconciliation succeeded and the serving state matches the + * WorkerPool, or there was an error, and reconciliation failed. This state + * can be found in `terminal_condition.state`. * - * If reconciliation succeeded, the following fields will match: `traffic` and - * `traffic_statuses`, `observed_generation` and `generation`, - * `latest_ready_revision` and `latest_created_revision`. + * If reconciliation succeeded, the following fields will match: + * `instance_splits` and `instance_split_statuses`, `observed_generation` and + * `generation`, `latest_ready_revision` and `latest_created_revision`. * - * If reconciliation failed, `traffic_statuses`, `observed_generation`, and - * `latest_ready_revision` will have the state of the last serving revision, - * or empty for newly created WorkerPools. Additional information on the - * failure can be found in `terminal_condition` and `conditions`. + * If reconciliation failed, `instance_split_statuses`, `observed_generation`, + * and `latest_ready_revision` will have the state of the last serving + * revision, or empty for newly created WorkerPools. Additional information on + * the failure can be found in `terminal_condition` and `conditions`. *
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8610,7 +8659,7 @@ public Builder setReconciling(boolean value) { * @return This builder for chaining. */ public Builder clearReconciling() { - bitField0_ = (bitField0_ & ~0x08000000); + bitField0_ = (bitField0_ & ~0x10000000); reconciling_ = false; onChanged(); return this; @@ -8622,11 +8671,11 @@ public Builder clearReconciling() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -8646,11 +8695,11 @@ public java.lang.String getEtag() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ @@ -8670,11 +8719,11 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The etag to set. * @return This builder for chaining. @@ -8684,7 +8733,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x10000000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -8693,17 +8742,17 @@ public Builder setEtag(java.lang.String value) { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x10000000); + bitField0_ = (bitField0_ & ~0x20000000); onChanged(); return this; } @@ -8712,11 +8761,11 @@ public Builder clearEtag() { * * *
-     * Output only. A system-generated fingerprint for this version of the
+     * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for etag to set. * @return This builder for chaining. @@ -8727,7 +8776,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/WorkerPoolOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java index ba71c20b01ff..a8049fc730bd 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolOrBuilder.java @@ -895,7 +895,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. The generation of this WorkerPool currently serving traffic.
+   * Output only. The generation of this WorkerPool currently serving workloads.
    * See comments in `reconciling` for additional information on reconciliation
    * process in Cloud Run. Please note that unlike v1, this is an int64 value.
    * As with most Google APIs, its JSON representation will be a `string`
@@ -1044,7 +1044,7 @@ java.lang.String getAnnotationsOrDefault(
    *
    *
    * 
-   * Output only. Name of the latest revision that is serving traffic. See
+   * Output only. Name of the latest revision that is serving workloads. See
    * comments in `reconciling` for additional information on reconciliation
    * process in Cloud Run.
    * 
@@ -1061,7 +1061,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. Name of the latest revision that is serving traffic. See
+   * Output only. Name of the latest revision that is serving workloads. See
    * comments in `reconciling` for additional information on reconciliation
    * process in Cloud Run.
    * 
@@ -1188,11 +1188,21 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Output only. Indicates whether Cloud Run Threat Detection monitoring is
+   * enabled for the parent project of this worker pool.
+   * 
+ * + * bool threat_detection_enabled = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The threatDetectionEnabled. + */ + boolean getThreatDetectionEnabled(); + + /** + * + * + *
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1205,11 +1215,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1222,11 +1228,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1240,11 +1242,7 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * One or more custom audiences that you want this worker pool to support.
-   * Specify each custom audience as the full URL in a string. The custom
-   * audiences are encoded in the token and used to authenticate requests. For
-   * more information, see
-   * https://cloud.google.com/run/docs/configuring/custom-audiences.
+   * Not supported, and ignored by Cloud Run.
    * 
* * repeated string custom_audiences = 37; @@ -1278,21 +1276,21 @@ java.lang.String getAnnotationsOrDefault( * will asynchronously perform all necessary steps to bring the WorkerPool to * the desired serving state. This process is called reconciliation. While * reconciliation is in process, `observed_generation`, - * `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - * values that might mismatch the intended state: Once reconciliation is over - * (and this field is false), there are two possible outcomes: reconciliation - * succeeded and the serving state matches the WorkerPool, or there was an - * error, and reconciliation failed. This state can be found in - * `terminal_condition.state`. + * `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + * transient values that might mismatch the intended state: Once + * reconciliation is over (and this field is false), there are two possible + * outcomes: reconciliation succeeded and the serving state matches the + * WorkerPool, or there was an error, and reconciliation failed. This state + * can be found in `terminal_condition.state`. * - * If reconciliation succeeded, the following fields will match: `traffic` and - * `traffic_statuses`, `observed_generation` and `generation`, - * `latest_ready_revision` and `latest_created_revision`. + * If reconciliation succeeded, the following fields will match: + * `instance_splits` and `instance_split_statuses`, `observed_generation` and + * `generation`, `latest_ready_revision` and `latest_created_revision`. * - * If reconciliation failed, `traffic_statuses`, `observed_generation`, and - * `latest_ready_revision` will have the state of the last serving revision, - * or empty for newly created WorkerPools. Additional information on the - * failure can be found in `terminal_condition` and `conditions`. + * If reconciliation failed, `instance_split_statuses`, `observed_generation`, + * and `latest_ready_revision` will have the state of the last serving + * revision, or empty for newly created WorkerPools. Additional information on + * the failure can be found in `terminal_condition` and `conditions`. *
* * bool reconciling = 98 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1305,11 +1303,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The etag. */ @@ -1319,11 +1317,11 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Output only. A system-generated fingerprint for this version of the
+   * Optional. 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]; + * string etag = 99 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for etag. */ diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java index 41cd8a2ee5c2..4821ccdc19d1 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolProto.java @@ -115,7 +115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035run.googleapis.com/WorkerPool\022\032\n\r" + "validate_only\030\002 \001(\010B\003\340A\001\022\014\n" - + "\004etag\030\003 \001(\t\"\243\014\n\n" + + "\004etag\030\003 \001(\t\"\312\014\n\n" + "WorkerPool\022\014\n" + "\004name\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\022\020\n" @@ -153,64 +153,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027latest_created_revision\030\" \001(\tB#\340A\003\372A\035\n" + "\033run.googleapis.com/Revision\022N\n" + "\027instance_split_statuses\030\033" - + " \003(\0132(.google.cloud.run.v2.InstanceSplitStatusB\003\340A\003\022\030\n" + + " \003(\0132(.google.cloud.run.v2.InstanceSplitStatusB\003\340A\003\022%\n" + + "\030threat_detection_enabled\030\034 \001(\010B\003\340A\003\022\030\n" + "\020custom_audiences\030% \003(\t\022\032\n\r" + "satisfies_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" + + "\004etag\030c \001(\tB\003\340A\001\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:\201\001\352A~\n" - + "\035run.googleapis.com/WorkerPool\022Aprojects/{project}/locatio" - + "ns/{location}/workerPools/{worker_pool}*\013workerPools2\n" + + "\035run.googleapis.com/WorkerPool\022Aprojects/{project}/location" + + "s/{location}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\0012\276\016\n" + "\013WorkerPools\022\230\002\n" - + "\020CreateWorkerPool\022,.google.cloud." - + "run.v2.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\266\001\312A\030\n\n" + + "\020CreateWorkerPool\022,.google.cloud.r" + + "un.v2.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\266\001\312A\030\n\n" + "WorkerPool\022\n" - + "WorkerPool\332A!parent,worker_pool,worker_" - + "pool_id\202\323\344\223\002>\"//v2/{parent=projects/*/lo" - + "cations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "WorkerPool\332A!parent,worker_pool,worker_p" + + "ool_id\202\323\344\223\002>\"//v2/{parent=projects/*/loc" + + "ations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\317\001\n\r" - + "GetWorkerPool\022).google.cloud.run.v2.GetWorkerPoolRequest\032\037.google.clo" - + "ud.run.v2.WorkerPool\"r\332A\004name\202\323\344\223\0021\022//v2" - + "/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + + "GetWorkerPool\022).google.cloud.run.v2.GetWorkerPoolRequest\032\037.google.clou" + + "d.run.v2.WorkerPool\"r\332A\004name\202\323\344\223\0021\022//v2/" + + "{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\341\001\n" - + "\017ListWorkerPools\022+.google.cloud.run.v2.ListWorkerPoolsReques" - + "t\032,.google.cloud.run.v2.ListWorkerPoolsR" - + "esponse\"s\332A\006parent\202\323\344\223\0021\022//v2/{parent=pr" - + "ojects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\017ListWorkerPools\022+.google.cloud.run.v2.ListWorkerPoolsRequest" + + "\032,.google.cloud.run.v2.ListWorkerPoolsRe" + + "sponse\"s\332A\006parent\202\323\344\223\0021\022//v2/{parent=pro" + + "jects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\265\002\n" - + "\020UpdateWorkerPool\022,.google.cloud" - + ".run.v2.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\323\001\312A\030\n\n" + + "\020UpdateWorkerPool\022,.google.cloud." + + "run.v2.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\323\001\312A\030\n\n" + "WorkerPool\022\n" - + "WorkerPool\332A\013worker_pool\332A\027worker_pool" - + ",update_mask\202\323\344\223\002J2;/v2/{worker_pool.nam" - + "e=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002:\0228\n" + + "WorkerPool\332A\013worker_pool\332A\027worker_pool," + + "update_mask\202\323\344\223\002J2;/v2/{worker_pool.name" + + "=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002:\0228\n" + "\020worker_pool.name\022$projects/*/locations/{location=*}/**\022\357\001\n" - + "\020DeleteWorkerPool\022,.google.cloud.run.v2." - + "DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\215\001\312A\030\n\n" + + "\020DeleteWorkerPool\022,.google.cloud.run.v2.D" + + "eleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\215\001\312A\030\n\n" + "WorkerPool\022\n" - + "Worker" - + "Pool\332A\004name\202\323\344\223\0021*//v2/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + + "WorkerP" + + "ool\332A\004name\202\323\344\223\0021*//v2/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\002.\022,\n" + "\004name\022$projects/*/locations/{location=*}/**\022\223\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPo" - + "licyRequest\032\025.google.iam.v1.Policy\"H\202\323\344\223" - + "\002B\022@/v2/{resource=projects/*/locations/*/workerPools/*}:getIamPolicy\022\226\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"K\202\323\344\223\002E\"@/v2/{r" - + "esource=projects/*/locations/*/workerPools/*}:setIamPolicy:\001*\022\274\001\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissionsR" - + "equest\032).google.iam.v1.TestIamPermission" - + "sResponse\"Q\202\323\344\223\002K\"F/v2/{resource=project" - + "s/*/locations/*/workerPools/*}:testIamPe" - + "rmissions:\001*\032F\312A\022run.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-platformBW\n" - + "\027com.google.cloud.run.v2B\017WorkerPoolProtoP\001Z)cloud.google.com/go/run/apiv" - + "2/runpb;runpbb\006proto3" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPol" + + "icyRequest\032\025.google.iam.v1.Policy\"H\202\323\344\223\002" + + "B\022@/v2/{resource=projects/*/locations/*/workerPools/*}:getIamPolicy\022\226\001\n" + + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"K\202\323\344\223\002E\"@/v2/{re" + + "source=projects/*/locations/*/workerPools/*}:setIamPolicy:\001*\022\274\001\n" + + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissionsRe" + + "quest\032).google.iam.v1.TestIamPermissions" + + "Response\"Q\202\323\344\223\002K\"F/v2/{resource=projects" + + "/*/locations/*/workerPools/*}:testIamPer" + + "missions:\001*\032F\312A\022run.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platformBW\n" + + "\027com.google.cloud.run.v2B\017WorkerPoolProtoP\001Z)cloud.google.com/go/run/apiv2" + + "/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -311,6 +312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LatestReadyRevision", "LatestCreatedRevision", "InstanceSplitStatuses", + "ThreatDetectionEnabled", "CustomAudiences", "SatisfiesPzs", "Reconciling", diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplate.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplate.java index ba0cff496771..23b67af4f3c5 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplate.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplate.java @@ -1008,6 +1008,45 @@ public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() : nodeSelector_; } + public static final int GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER = 16; + private boolean gpuZonalRedundancyDisabled_ = false; + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + @java.lang.Override + public boolean hasGpuZonalRedundancyDisabled() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + @java.lang.Override + public boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1059,6 +1098,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getNodeSelector()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(16, gpuZonalRedundancyDisabled_); + } getUnknownFields().writeTo(output); } @@ -1124,6 +1166,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getNodeSelector()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(16, gpuZonalRedundancyDisabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1166,6 +1212,10 @@ public boolean equals(final java.lang.Object obj) { if (hasNodeSelector()) { if (!getNodeSelector().equals(other.getNodeSelector())) return false; } + if (hasGpuZonalRedundancyDisabled() != other.hasGpuZonalRedundancyDisabled()) return false; + if (hasGpuZonalRedundancyDisabled()) { + if (getGpuZonalRedundancyDisabled() != other.getGpuZonalRedundancyDisabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1217,6 +1267,11 @@ public int hashCode() { hash = (37 * hash) + NODE_SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getNodeSelector().hashCode(); } + if (hasGpuZonalRedundancyDisabled()) { + hash = (37 * hash) + GPU_ZONAL_REDUNDANCY_DISABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGpuZonalRedundancyDisabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1438,6 +1493,7 @@ public Builder clear() { nodeSelectorBuilder_.dispose(); nodeSelectorBuilder_ = null; } + gpuZonalRedundancyDisabled_ = false; return this; } @@ -1539,6 +1595,10 @@ private void buildPartial0(com.google.cloud.run.v2.WorkerPoolRevisionTemplate re nodeSelectorBuilder_ == null ? nodeSelector_ : nodeSelectorBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.gpuZonalRedundancyDisabled_ = gpuZonalRedundancyDisabled_; + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -1676,6 +1736,9 @@ public Builder mergeFrom(com.google.cloud.run.v2.WorkerPoolRevisionTemplate othe if (other.hasNodeSelector()) { mergeNodeSelector(other.getNodeSelector()); } + if (other.hasGpuZonalRedundancyDisabled()) { + setGpuZonalRedundancyDisabled(other.getGpuZonalRedundancyDisabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1800,6 +1863,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 106 + case 128: + { + gpuZonalRedundancyDisabled_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4455,6 +4524,86 @@ public com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder() return nodeSelectorBuilder_; } + private boolean gpuZonalRedundancyDisabled_; + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + @java.lang.Override + public boolean hasGpuZonalRedundancyDisabled() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + @java.lang.Override + public boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled_; + } + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The gpuZonalRedundancyDisabled to set. + * @return This builder for chaining. + */ + public Builder setGpuZonalRedundancyDisabled(boolean value) { + + gpuZonalRedundancyDisabled_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+     * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGpuZonalRedundancyDisabled() { + bitField0_ = (bitField0_ & ~0x00001000); + gpuZonalRedundancyDisabled_ = 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/WorkerPoolRevisionTemplateOrBuilder.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateOrBuilder.java index f50b1002cb02..c75aca23208f 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateOrBuilder.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateOrBuilder.java @@ -681,4 +681,34 @@ java.lang.String getAnnotationsOrDefault( * */ com.google.cloud.run.v2.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the gpuZonalRedundancyDisabled field is set. + */ + boolean hasGpuZonalRedundancyDisabled(); + + /** + * + * + *
+   * Optional. True if GPU zonal redundancy is disabled on this worker pool.
+   * 
+ * + * + * optional bool gpu_zonal_redundancy_disabled = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuZonalRedundancyDisabled. + */ + boolean getGpuZonalRedundancyDisabled(); } diff --git a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateProto.java b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateProto.java index 42d168300f95..abc273f3fb1a 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateProto.java +++ b/java-run/proto-google-cloud-run-v2/src/main/java/com/google/cloud/run/v2/WorkerPoolRevisionTemplateProto.java @@ -49,38 +49,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n7google/cloud/run/v2/worker_pool_revisi" + "\n" + + "7google/cloud/run/v2/worker_pool_revisi" + "on_template.proto\022\023google.cloud.run.v2\032\037" + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032!google/cloud/run/v2/" - + "k8s.min.proto\032)google/cloud/run/v2/vendo" - + "r_settings.proto\032\036google/protobuf/durati" - + "on.proto\"\213\007\n\032WorkerPoolRevisionTemplate\022" - + "5\n\010revision\030\001 \001(\tB#\340A\001\372A\035\n\033run.googleapi" - + "s.com/Revision\022P\n\006labels\030\002 \003(\0132;.google." - + "cloud.run.v2.WorkerPoolRevisionTemplate." - + "LabelsEntryB\003\340A\001\022Z\n\013annotations\030\003 \003(\0132@." - + "google.cloud.run.v2.WorkerPoolRevisionTe" - + "mplate.AnnotationsEntryB\003\340A\001\0227\n\nvpc_acce" - + "ss\030\004 \001(\0132\036.google.cloud.run.v2.VpcAccess" - + "B\003\340A\001\022\034\n\017service_account\030\005 \001(\tB\003\340A\001\0222\n\nc" - + "ontainers\030\006 \003(\0132\036.google.cloud.run.v2.Co" - + "ntainer\0221\n\007volumes\030\007 \003(\0132\033.google.cloud." - + "run.v2.VolumeB\003\340A\001\022>\n\016encryption_key\030\010 \001" - + "(\tB&\372A#\n!cloudkms.googleapis.com/CryptoK" - + "ey\022;\n\014service_mesh\030\t \001(\0132 .google.cloud." - + "run.v2.ServiceMeshB\003\340A\001\022a\n encryption_ke" - + "y_revocation_action\030\n \001(\01622.google.cloud" - + ".run.v2.EncryptionKeyRevocationActionB\003\340" - + "A\001\022H\n encryption_key_shutdown_duration\030\013" + + "api/resource.proto\032!google/cloud/run/v2/k8s.min.proto\032)google/cloud/run/v2/vendo" + + "r_settings.proto\032\036google/protobuf/duration.proto\"\336\007\n" + + "\032WorkerPoolRevisionTemplate\0225\n" + + "\010revision\030\001 \001(\tB#\340A\001\372A\035\n" + + "\033run.googleapis.com/Revision\022P\n" + + "\006labels\030\002 \003(\0132;.google." + + "cloud.run.v2.WorkerPoolRevisionTemplate.LabelsEntryB\003\340A\001\022Z\n" + + "\013annotations\030\003 \003(\0132@." + + "google.cloud.run.v2.WorkerPoolRevisionTemplate.AnnotationsEntryB\003\340A\001\0227\n\n" + + "vpc_access\030\004" + + " \001(\0132\036.google.cloud.run.v2.VpcAccessB\003\340A\001\022\034\n" + + "\017service_account\030\005 \001(\tB\003\340A\001\0222\n\n" + + "containers\030\006 \003(\0132\036.google.cloud.run.v2.Container\0221\n" + + "\007volumes\030\007 \003(\0132\033.google.cloud.run.v2.VolumeB\003\340A\001\022>\n" + + "\016encryption_key\030\010 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022;\n" + + "\014service_mesh\030\t \001(\0132" + + " .google.cloud.run.v2.ServiceMeshB\003\340A\001\022a\n" + + " encryption_key_revocation_action\030\n" + + " \001(\01622.google.cloud.run.v2.EncryptionKeyRevocationActionB\003\340A\001\022H\n" + + " encryption_key_shutdown_duration\030\013" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\022=\n\r" - + "node_selector\030\r \001(\0132!.google.cloud.run.v" - + "2.NodeSelectorB\003\340A\001\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\001Bg" - + "\n\027com.google.cloud.run.v2B\037WorkerPoolRev" - + "isionTemplateProtoP\001Z)cloud.google.com/g" - + "o/run/apiv2/runpb;runpbb\006proto3" + + "node_selector\030\r" + + " \001(\0132!.google.cloud.run.v2.NodeSelectorB\003\340A\001\022/\n" + + "\035gpu_zonal_redundancy_disabled\030\020" + + " \001(\010B\003\340A\001H\000\210\001\001\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\001B \n" + + "\036_gpu_zonal_redundancy_disabledBg\n" + + "\027com.google.cloud.run.v2B\037WorkerPoolRevisionTemplateProtoP\001Z)cloud.google.co" + + "m/go/run/apiv2/runpb;runpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -110,6 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionKeyRevocationAction", "EncryptionKeyShutdownDuration", "NodeSelector", + "GpuZonalRedundancyDisabled", }); internal_static_google_cloud_run_v2_WorkerPoolRevisionTemplate_LabelsEntry_descriptor = internal_static_google_cloud_run_v2_WorkerPoolRevisionTemplate_descriptor diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/build.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/build.proto index f7030d89bb2c..bc3fbf462b87 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/build.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/build.proto @@ -19,6 +19,7 @@ package google.cloud.run.v2; 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/longrunning/operations.proto"; @@ -128,6 +129,18 @@ message SubmitBuildRequest { // Optional. Additional tags to annotate the build. repeated string tags = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The machine type from default pool to use for the build. If left + // blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8 + // is supported. If worker_pool is set, this field will be ignored. + string machine_type = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The release track of the client that initiated the build request. + google.api.LaunchStage release_track = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The client that initiated the build request. + string client = 11 [(google.api.field_behavior) = OPTIONAL]; } // Response message for submitting a Build. 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 1962fb05fe3d..760db385959c 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 @@ -179,6 +179,9 @@ message Condition { // The execution was deleted. DELETED = 5; + + // A delayed execution is waiting for a start time. + DELAYED_START_PENDING = 6; } // 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/job.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/job.proto index 5b24360c588c..575dcad53ba5 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 @@ -491,9 +491,9 @@ message Job { string run_execution_token = 27; } - // Output only. A system-generated fingerprint for this version of the + // Optional. 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]; + string etag = 99 [(google.api.field_behavior) = OPTIONAL]; } // Reference to an Execution. Use /Executions.GetExecution with the given name 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 ea6fef3eea13..9411379cecfa 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 @@ -54,6 +54,9 @@ message Container { // Dockerhub is assumed. string image = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. Location of the source. + SourceCode source_code = 17 [(google.api.field_behavior) = OPTIONAL]; + // Entrypoint array. Not executed within a shell. // The docker image's ENTRYPOINT is used if this is not provided. repeated string command = 3; @@ -107,7 +110,7 @@ message Container { // ResourceRequirements describes the compute resource requirements. message ResourceRequirements { - // Only `memory` and `cpu` keys in the map are supported. + // Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported. // //

Notes: // * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 @@ -115,6 +118,7 @@ message ResourceRequirements { // 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 + // * The only supported 'nvidia.com/gpu' value is '1'. map limits = 1; // Determines whether CPU is only allocated during requests (true by default). @@ -194,6 +198,10 @@ message VolumeMount { // available as `/cloudsql/[instance]`. For more information on Cloud SQL // volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run string mount_path = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Path within the volume from which the container's volume should + // be mounted. Defaults to "" (volume's root). + string sub_path = 4 [(google.api.field_behavior) = OPTIONAL]; } // Volume represents a named volume in a container. @@ -232,7 +240,7 @@ message SecretVolumeSource { string secret = 1 [(google.api.field_behavior) = REQUIRED]; // If unspecified, the volume will expose a file whose name is the - // secret, relative to VolumeMount.mount_path. + // secret, relative to VolumeMount.mount_path + VolumeMount.sub_path. // If specified, the key will be used as the version to fetch from Cloud // Secret Manager and the path will be the name of the file exposed in the // volume. When items are defined, they must specify a path and a version. @@ -449,3 +457,24 @@ message BuildInfo { // Output only. Source code location of the image. string source_location = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Source type for the container. +message SourceCode { + // Cloud Storage source. + message CloudStorageSource { + // Required. The Cloud Storage bucket name. + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Cloud Storage object name. + string object = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Cloud Storage object generation. + int64 generation = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // The source type. + oneof source_type { + // The source is a Cloud Storage bucket. + CloudStorageSource cloud_storage_source = 1; + } +} 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 fa9b0766c3cb..a8f481ee978c 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 @@ -240,6 +240,10 @@ message ListServicesResponse { // A token indicating there are more items than page_size. Use it in the next // ListServices request to continue. string next_page_token = 2; + + // Output only. For global requests, returns the list of regions that could + // not be reached within the deadline. + repeated string unreachable = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for obtaining a Service by its full name. @@ -284,13 +288,22 @@ message Service { style: DECLARATIVE_FRIENDLY }; - // The fully qualified name of this Service. In CreateServiceRequest, this - // field is ignored, and instead composed from CreateServiceRequest.parent and - // CreateServiceRequest.service_id. + // Settings for multi-region deployment. + message MultiRegionSettings { + // Required. List of regions to deploy to, including primary region. + repeated string regions = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. System-generated unique id for the multi-region Service. + string multi_region_id = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The fully qualified name of this Service. In + // CreateServiceRequest, this field is ignored, and instead composed from + // CreateServiceRequest.parent and CreateServiceRequest.service_id. // // Format: // projects/{project}/locations/{location}/services/{service_id} - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // User-provided description of the Service. This field currently has a // 512-character limit. @@ -397,8 +410,7 @@ message Service { ServiceScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; // Optional. Disables IAM permission check for run.routes.invoke for callers - // of this service. This feature is available by invitation only. For more - // information, visit + // of this service. For more information, visit // https://cloud.google.com/run/docs/securing/managing-access#invoker_check. bool invoker_iam_disabled = 21 [(google.api.field_behavior) = OPTIONAL]; @@ -408,6 +420,13 @@ message Service { // Output only. All URLs serving traffic for this Service. repeated string urls = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. IAP settings on the Service. + bool iap_enabled = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for multi-region deployment. + MultiRegionSettings multi_region_settings = 26 + [(google.api.field_behavior) = OPTIONAL]; + // One or more custom audiences that you want this service to support. Specify // each custom audience as the full URL in a string. The custom audiences are // encoded in the token and used to authenticate requests. For more @@ -463,6 +482,11 @@ message Service { // Output only. Reserved for future use. bool satisfies_pzs = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. True if Cloud Run Threat Detection monitoring is enabled for + // the parent project of this Service. + bool threat_detection_enabled = 40 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Configuration for building a Cloud Run function. BuildConfig build_config = 41 [(google.api.field_behavior) = OPTIONAL]; @@ -490,7 +514,7 @@ message Service { // can be found in `terminal_condition` and `conditions`. bool reconciling = 98 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A system-generated fingerprint for this version of the + // Optional. 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]; + string etag = 99 [(google.api.field_behavior) = OPTIONAL]; } 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 a2d6ae0ebfa8..575a070555eb 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 @@ -163,6 +163,11 @@ message ServiceScaling { // Optional. The scaling mode for the service. ScalingMode scaling_mode = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. total max instances for the service. This number of instances is + // divided among all revisions with specified traffic based on the percent + // of traffic they are receiving. + int32 max_instance_count = 4 [(google.api.field_behavior) = OPTIONAL]; + // Optional. total instance count for the service in manual scaling mode. This // number of instances is divided among all revisions with specified traffic // based on the percent of traffic they are receiving. diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto index b0eba016c349..0f8066b28ec7 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool.proto @@ -409,7 +409,7 @@ message WorkerPool { // Optional. Specifies worker-pool-level scaling settings WorkerPoolScaling scaling = 20 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The generation of this WorkerPool currently serving traffic. + // Output only. The generation of this WorkerPool currently serving workloads. // See comments in `reconciling` for additional information on reconciliation // process in Cloud Run. Please note that unlike v1, this is an int64 value. // As with most Google APIs, its JSON representation will be a `string` @@ -429,7 +429,7 @@ message WorkerPool { repeated Condition conditions = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Name of the latest revision that is serving traffic. See + // Output only. Name of the latest revision that is serving workloads. See // comments in `reconciling` for additional information on reconciliation // process in Cloud Run. string latest_ready_revision = 33 [ @@ -451,11 +451,12 @@ message WorkerPool { repeated InstanceSplitStatus instance_split_statuses = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; - // One or more custom audiences that you want this worker pool to support. - // Specify each custom audience as the full URL in a string. The custom - // audiences are encoded in the token and used to authenticate requests. For - // more information, see - // https://cloud.google.com/run/docs/configuring/custom-audiences. + // Output only. Indicates whether Cloud Run Threat Detection monitoring is + // enabled for the parent project of this worker pool. + bool threat_detection_enabled = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Not supported, and ignored by Cloud Run. repeated string custom_audiences = 37; // Output only. Reserved for future use. @@ -468,24 +469,24 @@ message WorkerPool { // will asynchronously perform all necessary steps to bring the WorkerPool to // the desired serving state. This process is called reconciliation. While // reconciliation is in process, `observed_generation`, - // `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient - // values that might mismatch the intended state: Once reconciliation is over - // (and this field is false), there are two possible outcomes: reconciliation - // succeeded and the serving state matches the WorkerPool, or there was an - // error, and reconciliation failed. This state can be found in - // `terminal_condition.state`. + // `latest_ready_revison`, `instance_split_statuses`, and `uri` will have + // transient values that might mismatch the intended state: Once + // reconciliation is over (and this field is false), there are two possible + // outcomes: reconciliation succeeded and the serving state matches the + // WorkerPool, or there was an error, and reconciliation failed. This state + // can be found in `terminal_condition.state`. // - // If reconciliation succeeded, the following fields will match: `traffic` and - // `traffic_statuses`, `observed_generation` and `generation`, - // `latest_ready_revision` and `latest_created_revision`. + // If reconciliation succeeded, the following fields will match: + // `instance_splits` and `instance_split_statuses`, `observed_generation` and + // `generation`, `latest_ready_revision` and `latest_created_revision`. // - // If reconciliation failed, `traffic_statuses`, `observed_generation`, and - // `latest_ready_revision` will have the state of the last serving revision, - // or empty for newly created WorkerPools. Additional information on the - // failure can be found in `terminal_condition` and `conditions`. + // If reconciliation failed, `instance_split_statuses`, `observed_generation`, + // and `latest_ready_revision` will have the state of the last serving + // revision, or empty for newly created WorkerPools. Additional information on + // the failure can be found in `terminal_condition` and `conditions`. bool reconciling = 98 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A system-generated fingerprint for this version of the + // Optional. 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]; + string etag = 99 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool_revision_template.proto b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool_revision_template.proto index ec0d293147b8..f8db7a564176 100644 --- a/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool_revision_template.proto +++ b/java-run/proto-google-cloud-run-v2/src/main/proto/google/cloud/run/v2/worker_pool_revision_template.proto @@ -102,4 +102,8 @@ message WorkerPoolRevisionTemplate { // Optional. The node selector for the revision template. NodeSelector node_selector = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. True if GPU zonal redundancy is disabled on this worker pool. + optional bool gpu_zonal_redundancy_disabled = 16 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/AsyncSubmitBuild.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/AsyncSubmitBuild.java index 4675c5281e4f..17afb1c87c57 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/AsyncSubmitBuild.java +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/AsyncSubmitBuild.java @@ -17,6 +17,7 @@ package com.google.cloud.run.v2.samples; // [START run_v2_generated_Builds_SubmitBuild_async] +import com.google.api.LaunchStage; import com.google.api.core.ApiFuture; import com.google.cloud.run.v2.BuildWorkerPoolName; import com.google.cloud.run.v2.BuildsClient; @@ -45,6 +46,9 @@ public static void asyncSubmitBuild() throws Exception { .setWorkerPool( BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) .addAllTags(new ArrayList()) + .setMachineType("machineType-218117087") + .setReleaseTrack(LaunchStage.forNumber(0)) + .setClient("client-1357712437") .build(); ApiFuture future = buildsClient.submitBuildCallable().futureCall(request); diff --git a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/SyncSubmitBuild.java b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/SyncSubmitBuild.java index ab1f48dcd79a..96ac34100493 100644 --- a/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/SyncSubmitBuild.java +++ b/java-run/samples/snippets/generated/com/google/cloud/run/v2/builds/submitbuild/SyncSubmitBuild.java @@ -17,6 +17,7 @@ package com.google.cloud.run.v2.samples; // [START run_v2_generated_Builds_SubmitBuild_sync] +import com.google.api.LaunchStage; import com.google.cloud.run.v2.BuildWorkerPoolName; import com.google.cloud.run.v2.BuildsClient; import com.google.cloud.run.v2.SubmitBuildRequest; @@ -44,6 +45,9 @@ public static void syncSubmitBuild() throws Exception { .setWorkerPool( BuildWorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString()) .addAllTags(new ArrayList()) + .setMachineType("machineType-218117087") + .setReleaseTrack(LaunchStage.forNumber(0)) + .setClient("client-1357712437") .build(); SubmitBuildResponse response = buildsClient.submitBuild(request); }